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

Disassembly:
push 0xffffffffffffffff
push 0x45a45b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0xac], ebx
cmp dword [eax + 0x44], ebx
jne 0x41341b
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x413414
mov eax, dword [esp + 0xb8]
push eax
call fcn.00421b49
add esp, 4
xor al, al
jmp 0x413781
mov ecx, dword [eax + 0x40]
mov ebp, dword [ecx]
mov esi, dword [eax + 0x28]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x413430
mov edi, dword [eax + 0x40]
mov eax, dword [eax + 0x28]
cmp esi, ebx
je 0x41343e
cmp esi, eax
je 0x413443
call fcn.004408d8
cmp ebp, edi
je 0x41375a
mov edi, 0xf
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0xac], 1
cmp esi, ebx
jne 0x413665
call fcn.004408d8
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x41347d
call fcn.004408d8
cmp esi, ebx
jne 0x41366c
call fcn.004408d8
xor esi, esi
cmp ebp, dword [esi + 0x18]
jne 0x413496
call fcn.004408d8
add ebp, 0x10
push ebp
lea ecx, [esp + 0x7c]
call fcn.0040e680
mov byte [esp + 0xac], 2
push 0x45ecf4
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00409410
mov byte [esp + 0xb8], 3
lea ecx, [esp + 0x84]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
call fcn.004094f0
add esp, 0x18
mov byte [esp + 0xac], 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x68]
call fcn.00401cc0
mov byte [esp + 0xac], 3
mov ebp, 0x10
cmp dword [esp + 0x58], ebp
jb 0x413515
mov eax, dword [esp + 0x44]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0xac], 2
cmp dword [esp + 0x3c], ebp
jb 0x41353c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
cmp dword [esp + 0x74], ebp
jae 0x413556
lea eax, [esp + 0x60]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41360d
mov edx, dword [esp + 0x9c]
inc edx
push edx
mov dword [esp + 0x24], ebx
call fcn.00421b54
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4136e8
mov eax, dword [esp + 0x9c]
inc eax
push eax
push ebx
push edi
call fcn.00440d10
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x20]
add esp, 0xc
cmp ecx, ebx
je 0x413673
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esp + 0x9c]
push eax
call edx
cmp eax, ebx
je 0x413673
mov ecx, dword [esp + 0x9c]
push ecx
push eax
push edi
call fcn.0043fa50
mov eax, dword [esp + 0xa8]
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00421b5f
add esp, 4
mov edi, 0xf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x78]
call fcn.0040e480
mov byte [esp + 0xac], bl
cmp dword [esp + 0x74], ebp
jb 0x41363f
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00421b49
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0040e210
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x413430
mov eax, dword [esi]
jmp 0x413473
mov esi, dword [esi]
jmp 0x41348c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x78]
call fcn.0040e480
mov byte [esp + 0xac], bl
cmp dword [esp + 0x74], ebp
jb 0x4136a5
mov edx, dword [esp + 0x60]
push edx
call fcn.00421b49
add esp, 4
mov esi, 0xf
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0xcc], ebp
jb 0x4136da
mov eax, dword [esp + 0xb8]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0xcc], esi
xor al, al
jmp 0x41378c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xac], 1
lea ecx, [esp + 0x78]
call fcn.0040e480
mov byte [esp + 0xac], bl
cmp dword [esp + 0x74], ebp
jb 0x41371a
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00421b49
add esp, 4
mov esi, 0xf
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0xcc], ebp
jb 0x4136da
mov edx, dword [esp + 0xb8]
push edx
call fcn.00421b49
add esp, 4
mov dword [esp + 0xcc], esi
xor al, al
jmp 0x41378c
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0xcc], 0x10
jb 0x41377f
mov eax, dword [esp + 0xb8]
push eax
call fcn.00421b49
add esp, 4
mov al, 1
mov dword [esp + 0xcc], 0xf
mov byte [esp + 0xb8], bl
mov dword [esp + 0xc8], ebx
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0044014d
add esp, 0x9c
ret 0x1c