Function at 0x41a680
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571eba
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x5bb250]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov dword [esp + 0x14], edx
mov esi, ecx
push str.dtmp
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x41a6f5
push str.dtmp
lea ecx, [esp + 0xb4]
call fcn.00420550
mov ebx, 1
jmp 0x41a70b
mov edx, 1
lea ecx, [esp + 0x98]
call fcn.00417f60
mov ebx, 2
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
call fcn.0041fb00
mov dword [esp + 0xf0], 1
test bl, 2
je 0x41a769
and ebx, 0xfffffffd
cmp dword [esp + 0xac], 8
mov dword [esp + 0x18], ebx
jb 0x41a749
push dword [esp + 0x98]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
mov byte [esp + 0xf0], 2
test bl, 1
je 0x41a7b6
and ebx, 0xfffffffe
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x18], ebx
jb 0x41a796
push dword [esp + 0xb0]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], 0
mov word [esp + 0xb0], ax
cmp dword [esp + 0x78], 0
jne 0x41a7ce
lea eax, [esp + 0x68]
mov ecx, esi
push eax
call fcn.0041fb00
jmp 0x41ab2c
xor eax, eax
mov dword [esp + 0x64], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x58], ax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x70]
mov dword [esp + 0x68], 0
push eax
call fcn.0041fda0
push 0x5c
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xf8], 3
call fcn.0041b980
push 4
push str.dtmp
lea ecx, [esp + 0x58]
call fcn.0041c0b0
xor eax, eax
mov dword [esp + 0x4c], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x40], ax
lea ecx, [esp + 0x40]
lea eax, [esp + 0x58]
mov dword [esp + 0x50], 0
push eax
call fcn.0041fda0
push 3
push 0x596614
lea ecx, [esp + 0x40]
mov byte [esp + 0xf8], 4
call fcn.0041c0b0
xor eax, eax
mov dword [esp + 0x34], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x28], ax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x58]
mov dword [esp + 0x38], 0
push eax
call fcn.0041fda0
push 2
push 0x59661c
lea ecx, [esp + 0x28]
mov byte [esp + 0xf8], 5
call fcn.0041c0b0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x4c], 8
movzx eax, ax
cmovae ecx, dword [esp + 0x38]
push ecx
push eax
call fcn.00413860
add esp, 8
test eax, eax
je 0x41a990
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41a952
cmp dword [esp + 0x4c], 8
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edi
cmovae ecx, dword [esp + 0x3c]
push edx
mov dl, al
call fcn.00431610
add esp, 8
test eax, eax
je 0x41a990
cmp dword [esp + 0x14], edi
je 0x41a990
cmp dword [esp + 0x1c], 1
jb 0x41a990
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0x5943f4
cmovae eax, dword [esp + 0x24]
push eax
call fcn.00545072
mov edi, eax
add esp, 8
test edi, edi
je 0x41a98e
push edi
push dword [esp + 0x20]
push 1
push dword [esp + 0x20]
call fcn.00543941
push edi
call fcn.00542ad9
add esp, 0x14
jmp 0x41a964
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041fda0
cmp dword [esp + 0x7c], 8
lea ecx, [esp + 0x68]
lea eax, [esp + 0x20]
cmovae ecx, dword [esp + 0x68]
cmp dword [esp + 0x34], 8
push ecx
cmovae eax, dword [esp + 0x24]
push eax
call fcn.00413df0
add esp, 8
mov edi, eax
jmp 0x41a990
xor edi, edi
cmp dword [esp + 0x48], 0
je 0x41a9ae
cmp dword [esp + 0x4c], 8
lea ecx, [esp + 0x38]
cmovae ecx, dword [esp + 0x38]
push ecx
call fcn.00412670
add esp, 4
cmp dword [esp + 0x30], 0
je 0x41a9cc
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
call fcn.00412670
add esp, 4
test edi, edi
je 0x41aa10
xor eax, eax
mov dword [esp + 0x94], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x88], ax
lea ecx, [esp + 0x88]
lea eax, [esp + 0x70]
mov dword [esp + 0x98], 0
push eax
call fcn.0041fda0
lea eax, [esp + 0x80]
or ebx, 8
jmp 0x41aa24
push 0x5966e0
lea ecx, [esp + 0xcc]
call fcn.00420550
or ebx, 0x10
push eax
mov ecx, esi
call fcn.0041fb00
or ebx, 4
test bl, 0x10
je 0x41aa70
and ebx, 0xffffffef
cmp dword [esp + 0xdc], 8
jb 0x41aa50
push dword [esp + 0xc8]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], 0
mov word [esp + 0xc8], ax
test bl, 8
je 0x41aaae
cmp dword [esp + 0x94], 8
jb 0x41aa8e
push dword [esp + 0x80]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
cmp dword [esp + 0x34], 8
jb 0x41aac1
push dword [esp + 0x20]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x41aaeb
push dword [esp + 0x38]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
jb 0x41ab15
push dword [esp + 0x50]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
cmp dword [esp + 0x7c], 8
jb 0x41ab3f
push dword [esp + 0x68]
call fcn.0053ba8c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret