Function at 0x405bc1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x38b0]
mov eax, 0x3930
call fcn.00406c50
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0x38ac], eax
push ebx
push 0x400
lea eax, [ebp + 0x2be4]
push eax
xor ebx, ebx
push ebx
call dword [0x412040]
lea eax, [ebp + 0x2be4]
push eax
lea eax, [ebp + 0x23e4]
push eax
call fcn.00406700
lea eax, [ebp + 0x23e4]
push 0x5c
push eax
call fcn.004077f0
add esp, 0x10
cmp eax, ebx
je 0x4061a9
lea ecx, [ebp + 0x23e4]
cmp eax, ecx
jbe 0x405c37
cmp byte [eax - 1], 0x3a
jne 0x405c37
mov byte [eax + 1], bl
jmp 0x405c39
mov byte [eax], bl
lea eax, [ebp + 0x23e4]
push eax
call dword [0x412098]
lea eax, [ebp + 0x23e4]
push eax
call fcn.0040424c
cmp byte [0x419518], bl
jne 0x405c85
push 0x10024
push 0x13f0
call fcn.004052ec
push eax
push 0x13f3
call fcn.004052ec
push eax
push ebx
call dword [0x4121f0]
cmp eax, 6
jne 0x4061a9
push esi
push 0x412e24
mov esi, 0x412e14
push esi
call fcn.0040778e
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x405cdd
push esi
push 0x13f4
call fcn.004052ec
push eax
lea eax, [ebp + 0x37e4]
push eax
call fcn.00406b9d
add esp, 0xc
push 0x10010
push 0x13f0
call fcn.004052ec
push eax
lea eax, [ebp + 0x37e4]
push eax
push ebx
call dword [0x4121f0]
jmp 0x4061a8
call fcn.00405865
mov ecx, 0x417fe8
call fcn.004051bf
cmp byte [0x419519], bl
jne 0x4061a8
push edi
xor edi, edi
push ebx
lea esi, [edi + 0x41617c]
push dword [esi]
call dword [0x41213c]
push dword [esi]
call dword [0x4120a0]
add edi, 4
cmp edi, 8
jb 0x405cfb
mov byte [ebp - 0x1d], bl
push dword [ebp - 0x24]
lea eax, [ebp + 0xfe4]
push 0x800
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0040858c
add esp, 0xc
test eax, eax
je 0x405f5e
lea eax, [ebp + 0xfe4]
push eax
call fcn.004054b5
cmp byte [ebp + 0xfe4], bl
je 0x405f28
lea eax, [ebp + 0xfe4]
push eax
lea eax, [ebp + 0x23e4]
push eax
lea eax, [ebp + 0x2fe4]
push 0x412e0c
push eax
call fcn.00406b9d
add esp, 0x10
lea eax, [ebp + 0x2fe4]
push eax
call dword [0x412144]
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp + 0x2fe4]
push eax
call dword [0x41213c]
cmp dword [ebp - 0x28], 0xffffffff
je 0x405db8
test byte [ebp - 0x28], 0x10
je 0x405db8
lea eax, [ebp + 0x2fe4]
push eax
call dword [str._nt_bj_rXf]
add dword [ebp - 0x2c], eax
jmp 0x405f28
lea eax, [ebp + 0x2fe4]
push eax
call dword [0x4120a0]
add dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x405f28
cmp dword [ebp - 0x28], 0xffffffff
je 0x405f28
mov esi, 0x400
push esi
lea eax, [ebp + 0x7e4]
push eax
push ebx
call dword [0x412040]
lea eax, [ebp + 0x2fe4]
push eax
call fcn.004041d9
mov edi, eax
lea eax, [ebp + 0x7e4]
push eax
call fcn.004041d9
push eax
push edi
call fcn.00405494
test eax, eax
je 0x405f28
push 0x412e14
push edi
call fcn.00405494
test eax, eax
je 0x405f28
mov byte [ebp - 0x1d], 1
xor edi, edi
push edi
lea eax, [ebp + 0x2fe4]
push eax
lea eax, [ebp + 0x27e4]
push 0x412e00
push eax
call fcn.00406b9d
add esp, 0x10
lea eax, [ebp + 0x27e4]
push eax
call dword [0x412144]
cmp eax, 0xffffffff
je 0x405e67
inc edi
cmp edi, 0x3e8
jl 0x405e30
lea eax, [ebp + 0x27e4]
push eax
lea eax, [ebp + 0x2fe4]
push eax
call dword [0x412138]
test eax, eax
jne 0x405e94
lea eax, [ebp + 0x2fe4]
push eax
lea eax, [ebp + 0x27e4]
push eax
call fcn.00406700
pop ecx
pop ecx
call fcn.0040415c
test eax, eax
je 0x405eaf
push 4
push ebx
lea eax, [ebp + 0x27e4]
push eax
call dword [0x412090]
jmp 0x405f28
push esi
lea eax, [ebp + 0x1be4]
push eax
call dword [0x41208c]
lea eax, [ebp + 0x1be4]
push eax
call fcn.0040424c
lea eax, [ebp + 0x1be4]
push 0x412df4
push eax
call fcn.00406710
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xbe4]
push eax
lea eax, [ebp + 0x27e4]
push eax
call dword [0x412088]
test eax, eax
jne 0x405f0a
lea eax, [ebp + 0x27e4]
push eax
lea eax, [ebp + 0xbe4]
push eax
call fcn.00406700
pop ecx
pop ecx
lea eax, [ebp + 0x1be4]
push eax
lea eax, [ebp + 0xbe4]
push eax
push 0x412df0
push 0x412de8
call dword [0x412084]
push dword [ebp - 0x24]
lea eax, [ebp + 0xfe4]
push 0x800
push eax
call fcn.0040858c
add esp, 0xc
test eax, eax
jne 0x405d3f
cmp dword [ebp - 0x2c], ebx
je 0x405f5e
push ebx
push ebx
push dword [ebp - 0x24]
call fcn.00408507
add esp, 0xc
jmp 0x405d1d
push dword [ebp - 0x24]
call fcn.0040746c
mov dword [esp], 0x412e14
call dword [0x4120a0]
cmp byte [ebp - 0x1d], bl
je 0x405f9a
push 0x10040
push 0x13f0
call fcn.004052ec
push eax
push 0x13fa
call fcn.004052ec
push eax
push ebx
call dword [0x4121f0]
lea eax, [ebp + 0x1fe4]
push eax
mov esi, 0x400
push esi
call dword [0x412080]
lea eax, [ebp + 0x1fe4]
push 0x412dd4
push eax
call fcn.00406710
lea eax, [ebp + 0x1fe4]
push 0x412994
push eax
call fcn.0040778e
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4061a7
call fcn.0040415c
test eax, eax
lea eax, [ebp + 0x2be4]
push eax
lea eax, [ebp + 0x33e4]
je 0x405ffa
push 0x412dc4
jmp 0x405fff
push 0x412da8
push eax
call fcn.00406b9d
add esp, 0xc
push dword [ebp - 0x24]
lea eax, [ebp + 0x33e4]
push eax
call fcn.00406a70
pop ecx
push eax
xor edi, edi
inc edi
lea eax, [ebp + 0x33e4]
push edi
push eax
call fcn.00407648
add esp, 0x10
lea eax, [ebp + 0x3e4]
push eax
push esi
call dword [0x412070]
lea eax, [ebp + 0x2be4]
push eax
lea eax, [ebp + 0x3e4]
push eax
lea eax, [ebp + 0x2be4]
push eax
lea eax, [ebp + 0x33e4]
push 0x412d74
push eax
call fcn.00406b9d
add esp, 0x14
mov dword [ebp - 0x28], 5
push dword [ebp - 0x24]
lea eax, [ebp + 0x33e4]
push eax
call fcn.00406a70
pop ecx
push eax
lea eax, [ebp + 0x33e4]
push edi
push eax
call fcn.00407648
add esp, 0x10
dec dword [ebp - 0x28]
jne 0x40606a
lea eax, [ebp + 0x1fe4]
push eax
lea eax, [ebp + 0x2be4]
push eax
push eax
lea eax, [ebp + 0x33e4]
push 0x412d44
push eax
call fcn.00406b9d
add esp, 0x14
push dword [ebp - 0x24]
lea eax, [ebp + 0x33e4]
push eax
call fcn.00406a70
pop ecx
push eax
lea eax, [ebp + 0x33e4]
push edi
push eax
call fcn.00407648
push dword [ebp - 0x24]
call fcn.0040746c
add esp, 0x14
push esi
lea eax, [ebp + 0x17e4]
push eax
push 0x412d3c
mov byte [ebp + 0x17e4], bl
call dword [0x412078]
lea eax, [ebp + 0x1fe4]
push eax
lea eax, [ebp + 0x17e4]
push eax
lea eax, [ebp - 0x1c]
push 0x412d30
push eax
call fcn.00406b9d
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00407380
add esp, 0x1c
mov dword [ebp - 0x70], esi
call fcn.0040415c
test eax, eax
je 0x40613c
mov esi, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x44], edi
mov word [ebp - 0x40], ax
jmp 0x406164
push ebx
push ebx
push 2
push ebx
push edi
push 0x40000000
push 0x412df0
mov dword [ebp - 0x44], 0x100
call dword [0x412164]
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
push 0x4122e0
call dword [0x412098]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
call fcn.0040415c
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
push eax
push edi
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x41207c]
call fcn.0040415c
test eax, eax
jne 0x4061a7
push esi
call dword [0x412180]
pop edi
pop esi
mov ecx, dword [ebp + 0x38ac]
xor ecx, ebp
pop ebx
call fcn.00406b8e
add ebp, 0x38b0
leave
ret