Function at 0x4136d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440651
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x47cc
call fcn.004363d0
mov dword [ebp - 0x47ac], 0
push 0xc
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x47c4], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x47c4], 0
je 0x41372f
mov ecx, dword [ebp - 0x47c4]
call fcn.0040f8f0
mov dword [ebp - 0x47d4], eax
jmp 0x413739
mov dword [ebp - 0x47d4], 0
mov eax, dword [ebp - 0x47d4]
mov dword [ebp - 0x47c0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x47c0]
mov dword [ebp - 0x47b0], ecx
mov dword [ebp - 0x47b8], 1
mov byte [ebp - 0x2021], 1
mov dword [ebp - 0x2028], 0
mov dword [ebp - 0x2020], 0
lea ecx, [ebp - 0x47a8]
call fcn.004015a0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
push 0x1000
push 0x483270
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4784]
push eax
call fcn.0040fbf0
add esp, 4
mov ecx, dword [ebp - 0x47b0]
push ecx
lea edx, [ebp - 0x4784]
push edx
lea eax, [ebp - 0x402c]
push eax
lea ecx, [ebp - 0x201c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004105e0
add esp, 0x14
mov dword [ebp - 0x47ac], eax
cmp dword [ebp - 0x47ac], 0
je 0x413a5c
push 0x483268
lea eax, [ebp - 0x201c]
push eax
call fcn.0040c8d0
add esp, 8
mov dword [0x483264], eax
cmp dword [0x483264], 0
je 0x413a57
call fcn.0040ab20
push eax
lea ecx, [ebp - 0x47a8]
call fcn.004015e0
lea ecx, [ebp - 0x47a8]
call fcn.0040a540
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413460
add esp, 4
lea edx, [ebp - 0x14]
push edx
call fcn.00427010
add esp, 4
mov eax, dword [ebp - 0x47b0]
push eax
lea ecx, [ebp - 0x4784]
push ecx
lea edx, [ebp - 0x402c]
push edx
push str.main
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0x446e48
mov edx, dword [ebp - 0x47ac]
push edx
push 0
call fcn.00410b20
add esp, 0x24
mov dword [ebp - 0x2020], eax
cmp dword [ebp - 0x2020], 0
je 0x413a4c
push 0xc
call fcn.004355c1
add esp, 4
mov dword [ebp - 0x47cc], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x47cc], 0
je 0x4138dc
push str.file:__packaged_mainSWF.swf
mov eax, dword [ebp - 0x47ac]
push eax
mov ecx, dword [ebp - 0x47cc]
call fcn.0040e670
mov dword [ebp - 0x47d8], eax
jmp 0x4138e6
mov dword [ebp - 0x47d8], 0
mov ecx, dword [ebp - 0x47d8]
mov dword [ebp - 0x47c8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x47c8]
mov dword [ebp - 0x47bc], edx
push 0
lea eax, [ebp - 0x47bc]
push eax
mov ecx, dword [ebp - 0x47b0]
call fcn.00413db0
cmp dword [ebp - 0x4760], 0
setne cl
mov edx, dword [ebp - 0x2020]
mov byte [edx + 0x142], cl
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x4788], eax
mov ecx, dword [ebp - 0x2020]
push ecx
call fcn.004134f0
add esp, 4
mov byte [ebp - 0x2021], al
mov dword [ebp - 0x479c], 1
movzx eax, byte [ebp - 0x2021]
test eax, eax
je 0x413a4c
cmp dword [ebp - 0x47b8], 0
je 0x413a4c
push 0
push 0
push 0
lea ecx, [ebp - 0x47a4]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 0x47b8], eax
cmp dword [ebp - 0x47b8], 0xffffffff
jne 0x4139b1
mov dword [ebp - 0x47b8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x47b4], eax
lea edx, [ebp - 0x47a4]
push edx
mov eax, dword [ebp - 0x4788]
push eax
mov ecx, dword [ebp - 0x47a4]
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x413a10
lea edx, [ebp - 0x47a4]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x47a4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x47a4], 0
jne 0x413a10
mov ecx, dword [ebp - 0x4798]
push ecx
mov edx, dword [ebp - 0x479c]
push edx
mov eax, dword [ebp - 0x47a0]
push eax
call fcn.004114a0
add esp, 0xc
cmp dword [0x485274], 0
je 0x413a47
mov ecx, dword [0x485274]
cmp ecx, dword [0x48527c]
jne 0x413a2e
mov byte [ebp - 0x2021], 0
mov edx, dword [0x485274]
push edx
call fcn.00406ec0
add esp, 4
mov dword [0x485274], 0
jmp 0x41395d
mov eax, dword [ebp - 0x479c]
mov dword [ebp - 0x18], eax
jmp 0x413a5c
call fcn.004105c0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x47d0], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47a8]
call fcn.004015c0
mov eax, dword [ebp - 0x47d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret