Function at 0x428980
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x65c
mov eax, dword [0x44901c]
xor eax, esp
mov dword [esp + 0x654], eax
push ebx
push ebp
mov ebp, dword [esp + 0x66c]
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
cmp dword [edi + 4], esi
je 0x4289b0
mov ebx, dword [edi]
call fcn.004280e0
mov ebx, dword [esp + 0x670]
mov dword [edi + 4], esi
mov esi, dword [edi]
cmp ebx, dword [esi + 4]
jl 0x4289cb
mov eax, 0x10000
jmp 0x428c88
cmp ebx, dword [esi + 0x10]
jge 0x4289d5
call fcn.004279c0
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jge 0x428a31
lea esp, [esp]
mov esi, dword [edi]
test esi, esi
je 0x428a2a
cmp dword [esi + 0x18], 0
je 0x428a2a
mov eax, dword [esi + 0x10]
add eax, 1
cmp eax, dword [esi + 4]
je 0x428a2a
mov ecx, dword [esi + 0x50]
add ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push 0
lea ecx, [ecx + edx + 0x2e]
add dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
push 0
lea edx, [esi + 0x78]
push edx
lea eax, [esi + 0x28]
push eax
mov eax, esi
call fcn.00427570
add esp, 0x10
neg eax
sbb eax, eax
add eax, 1
mov dword [esi + 0x18], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x4289e0
lea edx, [esp + 0x20]
push edx
push ebx
mov ecx, edi
call fcn.004282f0
test byte [esp + 0x22c], 0x10
movzx eax, word [ebp]
je 0x428a8d
cmp ax, 0x2f
je 0x428a64
cmp ax, 0x5c
je 0x428a64
test ax, ax
je 0x428a76
cmp word [ebp + 2], 0x3a
jne 0x428a76
push ebp
push 0
call fcn.00428840
add esp, 8
xor eax, eax
jmp 0x428c88
push ebp
add edi, 0x244
push edi
call fcn.00428840
add esp, 8
xor eax, eax
jmp 0x428c88
xor esi, esi
cmp ax, si
mov ebx, ebp
mov ecx, ebp
je 0x428abb
movzx eax, ax
jmp 0x428aa0
cmp ax, 0x2f
je 0x428aac
cmp ax, 0x5c
jne 0x428aaf
lea ebx, [ecx + 2]
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, si
jne 0x428aa0
lea edx, [esp + 0x250]
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x428ac6
cmp ebx, ebp
jne 0x428b4b
mov word [esp + 0x250], si
push ebx
lea ecx, [esp + 0x254]
push ecx
lea esi, [edi + 0x244]
push esi
lea edx, [esp + 0x464]
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x250]
push eax
push esi
call fcn.00428840
add esp, 8
xor esi, esi
mov ecx, dword [esp + 0x22c]
push esi
push ecx
push 2
push esi
push esi
push 0x40000000
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x428bb7
mov eax, 0x200
jmp 0x428c88
mov eax, ebx
sub eax, ebp
sar eax, 1
mov word [esp + eax*2 + 0x250], si
mov ax, word [esp + 0x250]
cmp ax, 0x2f
je 0x428b85
cmp ax, 0x5c
je 0x428b85
cmp ax, si
je 0x428ae1
cmp word [esp + 0x252], 0x3a
jne 0x428ae1
push ebx
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x460]
push 0x431d88
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x260]
push eax
push esi
call fcn.00428840
add esp, 0x18
jmp 0x428b1a
mov eax, dword [edi + 0x23c]
mov ecx, dword [edi]
push eax
push ecx
call fcn.00427cf0
add esp, 8
cmp dword [edi + 0x240], esi
jne 0x428be4
push 0x4000
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [edi + 0x240], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], esi
mov edi, edi
mov eax, dword [edi + 0x240]
lea edx, [esp + 0x17]
push edx
push eax
mov eax, dword [edi]
mov ecx, 0x4000
call fcn.00427e70
mov esi, eax
add esp, 8
cmp esi, 0xffffff96
je 0x428c43
test esi, esi
jl 0x428c39
jle 0x428c2e
mov edx, dword [edi + 0x240]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push ebx
call ebp
test eax, eax
je 0x428c4d
cmp byte [esp + 0x17], 0
jne 0x428c57
test esi, esi
jne 0x428bf0
mov dword [esp + 0x18], 0x5000000
jmp 0x428c76
mov dword [esp + 0x18], 0x1000
jmp 0x428c76
mov dword [esp + 0x18], 0x400
jmp 0x428c76
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x240]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi]
call fcn.004280e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x664]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429602
add esp, 0x65c
ret 8