Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], edx
push 0
push eax
mov edi, ecx
call fcn.00404630
push 0x421240
call fcn.00401020
push 0x4212e0
call fcn.00401020
push 0x4212fc
call fcn.00401020
push 0x421300
call fcn.00401020
lea eax, [ebp - 0x84]
push eax
push 0x421160
call fcn.00401060
push 0x421284
call fcn.00401020
add esp, 0x28
mov ebx, edi
test edi, edi
je 0x40181b
nop dword [eax]
lea ecx, [ebp - 0x84]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401808
test dl, dl
je 0x401804
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401808
add eax, 2
add ecx, 2
test dl, dl
jne 0x4017e8
xor eax, eax
jmp 0x40180d
sbb eax, eax
or eax, 1
test eax, eax
je 0x401852
mov ebx, dword [ebx + 0x284]
test ebx, ebx
jne 0x4017e0
mov eax, 0x421328
push eax
call fcn.00401020
add esp, 4
pop edi
pop ebx
nop dword [eax + eax]
call fcn.0040bd38
cmp eax, 0xa
je 0x40183f
cmp eax, 0xffffffff
jne 0x401830
call fcn.0040bd38
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004037e8
mov esp, ebp
pop ebp
ret
push esi
push 0x421090
call fcn.00401020
push ebx
push 0x4210c8
call fcn.00401020
lea esi, [ebx + 0x80]
push esi
push 0x4210d8
call fcn.00401020
lea eax, [ebx + 0x180]
push eax
push 0x4210e8
call fcn.00401020
mov eax, dword [ebx + 0x280]
add esp, 0x1c
sub eax, 0
je 0x4018a4
sub eax, 1
jne 0x4018b6
push 0x421114
jmp 0x4018a9
push 0x4210f8
push 0x421104
call fcn.00401020
add esp, 8
push 0x42111c
call fcn.00401020
push 0x421090
call fcn.00401020
push 0x421154
call fcn.00401020
push ebx
push 0x4211b4
call fcn.00401020
push 0x421164
call fcn.00401020
add esp, 0x18
nop dword [eax]
push 0
call fcn.00405406
push eax
push pe_nt_image_headers32
push esi
call fcn.00406e2c
add esp, 0x10
test eax, eax
je 0x4018f0
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401910
sub ecx, edx
cmp ecx, 1
jbe 0x4018f0
push 0x421170
mov byte [ecx + esi - 1], al
call fcn.00401020
add esp, 4
xor esi, esi
call fcn.00405739
cmp eax, 0xa
je 0x401977
cmp eax, 0xd
je 0x401977
cmp eax, 8
jne 0x401963
test esi, esi
jle 0x40197b
push eax
dec esi
call fcn.00406f84
push 0x20
call fcn.00406f84
push 8
call fcn.00406f84
add esp, 0xc
jmp 0x40197b
mov byte [esi + ebx + 0x180], al
inc esi
push 0x2a
call fcn.00406f84
add esp, 4
jmp 0x40197b
test esi, esi
jg 0x401985
cmp esi, 0x100
jl 0x401931
jmp 0x401997
push 0xa
mov byte [esi + ebx + 0x180], 0
call fcn.00406f84
add esp, 4
cmp ebx, dword [ebp - 0x88]
je 0x4019ce
push 0x42117c
call fcn.00401020
lea esi, [ebx + 0x280]
push esi
push 0x4211a4
call fcn.00401060
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x4019ce
cmp eax, 1
je 0x4019ce
mov dword [esi], 0
push 0x42111c
call fcn.00401020
push 0x42104c
push str.userinfo.dat
call fcn.00405327
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401a4f
mov ecx, edi
xor edx, edx
mov ecx, dword [ecx + 0x284]
inc edx
test ecx, ecx
jne 0x4019f4
push esi
push 1
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], edx
push 4
push eax
call fcn.004071ae
add esp, 0x10
nop dword [eax]
push esi
push 1
push 0x288
push edi
call fcn.004071ae
mov edi, dword [edi + 0x284]
add esp, 0x10
test edi, edi
jne 0x401a20
push esi
call fcn.00405501
add esp, 4
mov eax, 0x421314
pop esi
jmp 0x401820
push 0x421060
call fcn.00401020
add esp, 4
mov eax, 0x421314
pop esi
jmp 0x401820