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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56e9fa
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x5b8250]
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 0x41a815
push str.dtmp
lea ecx, [esp + 0xb4]
call fcn.00420660
mov ebx, 1
jmp 0x41a82b
mov edx, 1
lea ecx, [esp + 0x98]
call fcn.00418080
mov ebx, 2
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], ebx
call fcn.0041fc10
mov dword [esp + 0xf0], 1
test bl, 2
je 0x41a889
and ebx, 0xfffffffd
cmp dword [esp + 0xac], 8
mov dword [esp + 0x18], ebx
jb 0x41a869
push dword [esp + 0x98]
call fcn.005385cc
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 0x41a8d6
and ebx, 0xfffffffe
cmp dword [esp + 0xc4], 8
mov dword [esp + 0x18], ebx
jb 0x41a8b6
push dword [esp + 0xb0]
call fcn.005385cc
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 0x41a8ee
lea eax, [esp + 0x68]
mov ecx, esi
push eax
call fcn.0041fc10
jmp 0x41ac4c
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.0041feb0
push 0x5c
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xf8], 3
call fcn.0041ba90
push 4
push str.dtmp
lea ecx, [esp + 0x58]
call fcn.0041c1c0
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.0041feb0
push 3
push 0x59383c
lea ecx, [esp + 0x40]
mov byte [esp + 0xf8], 4
call fcn.0041c1c0
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.0041feb0
push 2
push 0x593844
lea ecx, [esp + 0x28]
mov byte [esp + 0xf8], 5
call fcn.0041c1c0
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 0x41aab0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41aa72
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.00439d80
add esp, 8
test eax, eax
je 0x41aab0
cmp dword [esp + 0x14], edi
je 0x41aab0
cmp dword [esp + 0x1c], 1
jb 0x41aab0
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
push 0x5915e4
cmovae eax, dword [esp + 0x24]
push eax
call fcn.005419e2
mov edi, eax
add esp, 8
test edi, edi
je 0x41aaae
push edi
push dword [esp + 0x20]
push 1
push dword [esp + 0x20]
call fcn.005402ab
push edi
call fcn.0053f443
add esp, 0x14
jmp 0x41aa84
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041feb0
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 0x41aab0
xor edi, edi
cmp dword [esp + 0x48], 0
je 0x41aace
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 0x41aaec
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 0x41ab30
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.0041feb0
lea eax, [esp + 0x80]
or ebx, 8
jmp 0x41ab44
push 0x593910
lea ecx, [esp + 0xcc]
call fcn.00420660
or ebx, 0x10
push eax
mov ecx, esi
call fcn.0041fc10
or ebx, 4
test bl, 0x10
je 0x41ab90
and ebx, 0xffffffef
cmp dword [esp + 0xdc], 8
jb 0x41ab70
push dword [esp + 0xc8]
call fcn.005385cc
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 0x41abce
cmp dword [esp + 0x94], 8
jb 0x41abae
push dword [esp + 0x80]
call fcn.005385cc
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 0x41abe1
push dword [esp + 0x20]
call fcn.005385cc
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 0x41ac0b
push dword [esp + 0x38]
call fcn.005385cc
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 0x41ac35
push dword [esp + 0x50]
call fcn.005385cc
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 0x41ac5f
push dword [esp + 0x68]
call fcn.005385cc
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.0053aa3c
mov esp, ebp
pop ebp
ret