Function at 0x4022b1
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41eba4
call fcn.00414b54
mov eax, 0x1888
call fcn.00414d30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x4022da
mov eax, 0x8000ffff
jmp 0x40266e
or dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00402b46
mov dword [ebp - 0x48], 0x4204ac
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x893]
mov byte [ebp - 0x894], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea edi, [esi + 8]
push 0x42419c
push 7
push ebx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00402bf3
test eax, eax
je 0x40234c
push ebx
push 0x42418c
push 6
push ebx
mov ecx, edi
call fcn.00402bf3
test eax, eax
jne 0x40236b
mov ecx, edi
call fcn.00402c81
push dword [edi + 4]
lea eax, [ebp - 0x894]
push 0x424180
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 0x42418c
push 6
push ebx
mov ecx, edi
call fcn.00402bf3
neg eax
sbb al, al
push 0xa8
inc al
mov byte [ebp - 0xd], al
je 0x4023bc
call fcn.004146d7
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 2
je 0x4023ed
push ebx
push ebx
push ebx
push ebx
push 0x7530
push 0x424174
call fcn.004026cd
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x4204dc
jmp 0x4023ef
call fcn.004146d7
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x4023ed
push ebx
push ebx
push ebx
push ebx
push 0x7530
push 0x424174
call fcn.004026cd
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x4204b0
jmp 0x4023ef
xor eax, eax
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call fcn.00402c81
mov edi, dword [edi + 4]
lea eax, [ebp - 0x894]
push 0x80400100
push eax
push edi
mov edi, dword [ebp - 0x14]
mov ecx, edi
call fcn.00411780
test al, al
jne 0x40244d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x402437
call edi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
jmp 0x4024fb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], eax
mov edi, eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x40248c
cmp edi, ebx
jbe 0x402472
cmp edi, 0xffffffff
jne 0x40248c
mov esi, dword [esi + 4]
mov edi, 0x8004d554
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ebx, edi
jmp 0x4024fb
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push dword [eax]
call fcn.0040217a
sub esp, 0x10
lea eax, [ebp - 0x5c]
mov edi, esp
mov dword [ebp + 8], esp
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00402b5a
lea ecx, [ebp - 0x4c]
mov dword [edi], 0x4204ac
call fcn.004029ea
cmp eax, ebx
jne 0x40250e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4024de
call edi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040207f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402acc
mov eax, ebx
jmp 0x40266e
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00402a92
mov byte [ebp - 4], 5
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
mov edi, 0x1000
cmp byte [ebp + 0xb], bl
jne 0x40260c
cmp byte [ebp - 0xd], bl
jne 0x40260c
push edi
lea eax, [ebp - 0x1894]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004144d0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1894]
push edi
push eax
call fcn.004118cb
cmp dword [ebp - 0x18], 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4025c9
cmp dword [ebp - 0x18], ebx
jbe 0x4025a2
lea eax, [ebp - 0x38]
push ebx
push eax
lea eax, [ebp - 0x1894]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402599
mov eax, dword [ebp - 0x38]
jmp 0x40259c
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x4025c9
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
add dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp eax, 1
setne byte [ebp - 0xe]
cmp dword [ebp - 0x18], ebx
sete byte [ebp - 0xd]
jmp 0x402603
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4025e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1c], eax
jmp 0x4025ed
mov dword [ebp - 0x1c], ebx
mov eax, ebx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp eax, 1
setne byte [ebp + 0xb]
cmp byte [ebp - 0xe], bl
je 0x40252c
cmp dword [ebp - 0x4c], 0xffffffff
je 0x40261f
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x402639
cmp byte [ebp + 0xb], bl
jne 0x402639
lea ecx, [ebp - 0x70]
call fcn.00402aae
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00402ab3
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040207f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00402acc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4