Function at 0x409240
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f832b
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x216]
push 0x206
push 0
push eax
call fcn.0048faf0
movups xmm0, xmmword [0x501550]
mov eax, dword [0x501560]
lea edi, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x208], eax
movups xmmword [ebp - 0x218], xmm0
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4092b0
mov ecx, 8
lea eax, [ebp - 0x218]
mov esi, 0x501564
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x87c]
call fcn.00428b22
lea ecx, [ebp - 0x87c]
mov dword [ebp - 4], 0
call fcn.0041b69b
test eax, eax
jne 0x4096b2
cmp dword [0x54cc98], eax
jne 0x409301
call fcn.00409d70
mov ecx, dword [0x54cc98]
push ebx
call fcn.00404040
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 4
call fcn.0041c0d6
mov edi, eax
add esp, 4
mov dword [ebp - 0x864], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x40933d
push str.imgdecoder_png
mov ecx, edi
call fcn.00401540
jmp 0x40933f
xor edi, edi
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0
push 0
push eax
call fcn.0048faf0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.0048fc4a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
je 0x4096ac
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x85c], 0
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 3
push eax
call fcn.0041164f
add esp, 4
lea eax, [ebp - 0x860]
mov ecx, edi
push eax
call fcn.004090f0
mov ecx, dword [ebp - 0x85c]
push dword [ebp - 0x860]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.0041c0d6
add esp, 4
mov dword [ebp - 0x864], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x409429
push 0
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x868], 0x5011bc
push ecx
push str.SOUIHOST
push dword [0x54cd20]
mov ecx, eax
push dword [ebp - 0x85c]
call fcn.00437767
mov ebx, eax
jmp 0x40942b
xor ebx, ebx
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SGifPlayer_.0
push 0
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 4]
call fcn.0044cf33
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SSkinGif_.0
push 0
lea eax, [ebp - 0x870]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 4]
call fcn.0044cf33
mov dword [ebp - method.SOUI::SObjectFactory.virtual_0], vtable.SOUI::TplSObjectFactory_class_SOUI::SSkinAPNG_.0
push 0
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebx + 4]
call fcn.0044cf33
mov byte [ebp - 4], 3
call fcn.00403820
mov dword [ebp - 0x858], 0
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 8
push eax
push 0
call fcn.0044d63f
mov ecx, dword [ebp - 0x858]
add esp, 8
mov eax, dword [ecx]
push 0
push dword [0x54cd20]
call dword [eax + 0xc]
push str.uidef:xml_init
push dword [ebp - 0x858]
lea ecx, [ebx + 0x10]
call fcn.00436098
push str.Resource.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40953b
mov dword [ebp - 0x854], 0
lea eax, [ebp - 0x854]
mov byte [ebp - 4], 9
push eax
push 0
call fcn.0044d63f
mov ecx, dword [ebp - 0x854]
add esp, 8
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
push dword [ebp - 0x854]
mov ecx, ebx
call fcn.0043b327
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x854]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x40953b
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x850]
call fcn.00405ef0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], 0xa
call fcn.004496aa
push 0
push 0
push 0x110
push dword [ebp - 0x60c]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
lea ecx, [ebp - 0x618]
call fcn.00447fcf
cmp dword [0x54cc98], 0
jne 0x409591
call fcn.00409d70
mov ecx, dword [0x54cc98]
call fcn.00404010
test eax, eax
jne 0x4095a4
push 1
jmp 0x4095a6
push 0
push dword [ebp - 0x60c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x488]
call fcn.0040ae40
mov ecx, dword [ebp - 0x480]
lea eax, [ebp - 0x4b4]
mov dword [ebp - 0x864], eax
mov eax, dword [ebp - 0x484]
mov byte [ebp - 4], 0xb
cmp eax, ecx
je 0x4095f1
nop dword [eax]
lea edx, [ebp - 0x4b4]
cmp dword [eax], edx
je 0x409603
add eax, 4
cmp eax, ecx
jne 0x4095e0
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x484]
call fcn.0040a550
lea ecx, [ebp - 0x488]
call fcn.0040d8f0
lea ecx, [ebp - 0x488]
call fcn.0040c9c0
push esi
mov ecx, ebx
call fcn.0043ce91
lea ecx, [ebp - 0x488]
call fcn.0040b1a0
lea ecx, [ebp - 0x850]
call fcn.00405fe0
test ebx, ebx
je 0x409643
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x858]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x409656
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x85c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x409669
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x860]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40967c
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
sub esi, 0xc
mov byte [ebp - 4], 0xc
cmp esi, dword [0x5468a0]
je 0x4096a1
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4096a1
push esi
call fcn.004896a3
add esp, 4
push 4
push edi
call fcn.0041bf28
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [ebp - 0x87c]
call fcn.00428b37
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret 4