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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov dword [esp + 0x10], edx
push ebp
mov dword [esp + 0x18], edx
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, dword [edi + 0x460]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
push 1
xor ebp, ebp
mov dword [esp + 0x30], edx
push ebp
mov dword [esp + 0x38], edx
push ebp
mov dword [esp + 0x40], edx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], 0x30000000
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x2254b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2254b3c
or esi, esi
mov ecx, dword [edi + 0x44c]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x68]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
jle 0x2254b92
mov ecx, dword [edi + 0x45c]
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx]
je 0x2254b89
mov edx, dword [edi + 0x44c]
inc eax
add ecx, 4
cmp eax, edx
jl 0x2254b71
jmp 0x2254b92
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x2254ba9
or dword [edi + 0x468], 0x100
pop edi
pop esi
pop ebp
mov eax, 0x49c
pop ebx
add esp, 0x50
ret
mov eax, dword [edi + 0x460]
push ebp
lea ecx, [esp + 0x68]
push ecx
push 0x20
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x78], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2254bd2
cmp dword [esp + 0x64], 0x20
je 0x2254be9
or dword [edi + 0x468], 0x100
pop edi
pop esi
pop ebp
mov eax, 0x46b
pop ebx
add esp, 0x50
ret
mov esi, dword [esi + 0x18]
mov dword [esp + 0x64], ebp
jmp 0x2254c00
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x2254c00
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
cmp ecx, dword [eax + 0x14]
jge 0x2254d2e
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
push 1
add eax, 0x24
mov dword [esp + 0x54], edx
push ebp
add ecx, eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x460]
push ebp
mov dword [esp + 0x64], edx
push eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x34], ecx
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x2254c6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2254c6b
or ebx, ebx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 8]
push edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x4c], ebx
call fcn.0225d9c0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
push ebp
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x64], edx
push 0x24
lea edx, [esp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x460]
push edx
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2254d0c
cmp dword [esp + 0x18], 0x24
jne 0x2254d0c
mov edx, dword [esi + 0x14]
cmp edx, ebp
jle 0x2254d14
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x460]
push ebp
lea ebx, [esp + 0x1c]
push ebx
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2254d03
or eax, 0xffffffff
jmp 0x2254d07
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
je 0x2254d14
mov dword [esp + 0x10], 0x46b
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
inc edx
add esi, 0x30
cmp eax, ebp
mov dword [esp + 0x64], edx
je 0x2254bf2
jmp 0x2254d34
cmp dword [esp + 0x10], ebp
je 0x2254d4a
or dword [edi + 0x468], 0x100
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [edi + 0x460]
push 1
push ebp
push ebp
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x2254d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2254d6a
or esi, esi
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x460]
push ebp
push ebp
push ecx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x2254d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x460]
push ebp
lea edx, [esp + 0x6c]
push edx
push 0x20
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x7c], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x460]
push ebp
push ebp
push esi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x2254dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc dword [edi + 0x454]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret