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

Disassembly:
mov eax, 0x21d8
call sub.ntdll.dll__alloca_probe
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0xc4]
push 0x114
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xcc], ebx
call fcn.004024ba
push 0x200f
lea eax, [esp + 0x1e9]
mov dword [esp + 0x30], ebx
push ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x1f0], bl
call fcn.004024ba
add esp, 0x18
push ebx
push dword [esp + 0x21f0]
call fcn.0040975d
mov dword [esp + 0x3c], eax
lea edi, [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x78], ebx
stosd dword es:[edi], eax
push 0x27
push ebx
mov byte [esp + 0x90], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x91]
push eax
call fcn.004024ba
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.rpcrt4.dll_UuidCreate]
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00409029
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push dword [esp + 0x2204]
mov edi, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40957a
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x40957a
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x40957a
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov ecx, 0x200
mov dword [esp + 0x30], eax
cmp eax, ecx
jle 0x4091a9
mov dword [esp + 0x30], ecx
push 7
xor eax, eax
mov byte [esp + 0x4c], 0
pop ecx
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc0]
push eax
call fcn.00402752
lea eax, [esp + 0x20]
push eax
call fcn.00406fb5
push 1
push 6
call fcn.00406f96
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00407009
mov esi, eax
test esi, esi
jne 0x4094f1
xor edx, edx
mov al, byte [esp + 0x18]
mov cl, dl
shl cl, 3
shr al, cl
mov byte [esp + edx + 0x48], al
inc edx
cmp edx, 8
jl 0x4091f3
lea eax, [esp + 0x20]
push eax
call fcn.004070c1
push 8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004070e1
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push esi
lea eax, [esp + 0x28]
push eax
call fcn.004070e1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00407109
movzx eax, byte [esp + 0x18]
lea esi, [esp + 0x48]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and eax, 0x8000000f
jns 0x409266
dec eax
or eax, 0xfffffff0
inc eax
mov byte [esp + 0x77], al
lea esi, [esp + 0x68]
lea edi, [esp + 0xb0]
mov dword [esp + 0x40], eax
movsd dword es:[edi], dword [esi]
xor eax, eax
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea esi, [esp + 0x68]
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov edi, 0x2000
lea eax, [esp + 0x20]
push eax
call fcn.004070c1
push 0x20
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004070e1
push esi
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004070e1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00407109
dec edi
jne 0x40929d
push 0x100
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00402780
push 0x20
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00407150
mov edi, dword [esp + 0x1c]
test edi, edi
jl 0x40932a
mov eax, 0x500000
jg 0x40931c
mov esi, dword [esp + 0x18]
cmp esi, eax
jbe 0x40932e
mov esi, eax
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
jmp 0x40932e
mov esi, dword [esp + 0x18]
push 0
push 0x2000
push edi
push esi
call sub.ntdll.dll__alldiv
push 0
push 0x2000
push edi
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], edx
call sub.ntdll.dll__allrem
push 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push 0x2000
lea eax, [esp + 0x1e4]
mov dword [esp + 0x50], edx
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
xor eax, eax
push eax
push eax
push eax
push ebx
call fcn.00408fe5
mov ecx, dword [esp + 0x34]
xor esi, esi
xor edi, edi
test ecx, ecx
jl 0x40944a
jg 0x40939e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40944e
push 0
push 2
push edi
push esi
call sub.ntdll.dll__allrem
or eax, edx
jne 0x4093e8
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x1e4]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00408f7f
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x1e4]
push eax
push ebx
call ebp
jmp 0x409428
push 1
push 0
push 0x2000
push ebx
call fcn.00408fe5
push 0
lea eax, [esp + 0x18]
push eax
push 0x2000
lea eax, [esp + 0x1e4]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
xor eax, eax
neg ecx
push 1
adc eax, eax
neg eax
push eax
push ecx
push ebx
call fcn.00408fe5
mov ecx, dword [esp + 0x34]
add esi, 1
adc edi, 0
cmp edi, ecx
jl 0x40939e
mov eax, dword [esp + 0x2c]
jg 0x40944e
cmp esi, eax
jb 0x40939e
jmp 0x40944e
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x44], 0
jl 0x4094af
mov esi, dword [esp + 0x38]
jg 0x40945f
test esi, esi
je 0x4094af
push 0
push 2
push ecx
push eax
call sub.ntdll.dll__allrem
or eax, edx
jne 0x4094af
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xc4]
push eax
push esi
lea eax, [esp + 0x1e4]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00408f7f
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
movzx eax, al
neg eax
and eax, 0xf
add eax, esi
push eax
lea eax, [esp + 0x1e4]
push eax
push ebx
call ebp
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00407253
push 2
push 0
push 0
push ebx
call fcn.00408fe5
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x54]
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0xbc]
push eax
push ebx
call ebp
xor esi, esi
mov edi, dword [esp + 0x30]
test ebx, ebx
je 0x40954a
push edi
lea eax, [esp + 0x8c]
push eax
push dword [0x40113c]
push dword [esp + 0x21fc]
call fcn.0040a3f4
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x80
push eax
push ebx
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x21fc]
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push dword [esp + 0x2200]
push ebx
call ebp
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esp + 0x3c]
call fcn.00402627
pop ecx
lea eax, [esp + 0x20]
push eax
call fcn.00406fc3
lea eax, [esp + 0xc0]
push eax
call fcn.00402768
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x21d8
ret 0xc
xor esi, esi
inc esi
jmp 0x4094f5