Function at 0x405fbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x26b
lea eax, [ebp - 0x2bf]
push ebx
push eax
mov byte [ebp - 0x2c0], bl
call fcn.0041a74c
xor edx, edx
add esp, 0xc
inc edx
mov dword [ebp - 0x2cc], ebx
cmp dword [0x4280d4], ebx
jne 0x406049
mov ecx, dword [0x4271e0]
mov eax, ecx
and eax, edx
mov dword [0x42a250], eax
mov eax, ecx
and eax, 4
mov dword [0x42a24c], eax
mov eax, ecx
and eax, 8
mov dword [0x42a248], eax
mov eax, dword [0x428370]
and ecx, 2
mov dword [0x42a244], ecx
mov dword [0x42a008], eax
mov byte [0x42a260], bl
mov dword [0x4280d4], edx
test edi, edi
je 0x4065c0
test esi, esi
jne 0x4060ec
push dword [edi]
call fcn.004091a2
mov esi, eax
push esi
mov ebx, 0x104
push ebx
push 0x42a140
call fcn.00419fc8
add esp, 0xc
push esi
push dword [edi]
call fcn.00409287
push dword [edi + 4]
call fcn.004091a2
mov esi, eax
push esi
push ebx
push 0x42a020
call fcn.00419fc8
add esp, 0xc
push esi
push dword [edi + 4]
call fcn.00409287
cmp dword [0x428374], 0
jne 0x4060d9
push 1
call fcn.0040d3af
xor ebx, ebx
push ebx
push 0x406d87
push dword [0x429ea8]
push 0x4014e4
push dword [0x429eac]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push ebx
mov esi, eax
call fcn.0040d3af
jmp 0x4060dd
xor ebx, ebx
mov esi, ebx
test esi, esi
je 0x4065c0
mov esi, 0x42a260
jmp 0x406127
mov ecx, dword [ebp + 0x10]
mov eax, ecx
and eax, edx
mov dword [0x42a250], eax
mov eax, ecx
and eax, 2
push ebx
mov dword [0x42a24c], eax
push 0x42a260
mov eax, ecx
push 0x104
and eax, 4
and ecx, 8
push esi
mov dword [0x42a248], eax
mov dword [0x42a244], ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x40619e
push esi
push 0x294
call fcn.0040d387
push eax
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
add esp, 0x10
cmp dword [0x428374], 0
jne 0x4065c0
push 1
call fcn.0040d3af
push 0x10
push 0x4012e8
lea eax, [ebp - 0x2c0]
push eax
push dword [0x429ea8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0040d3af
jmp 0x4065c0
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push edi
mov dword [ebp - 0x2d0], eax
call fcn.00406761
cmp dword [0x42a250], 0
mov ebx, eax
mov esi, 0x4012c0
je 0x4061d9
push 0x295
call fcn.0040d387
jmp 0x4061db
mov eax, esi
push eax
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.00419fc8
add esp, 0xc
cmp dword [0x42a248], 0
je 0x4061ff
push 0x296
call fcn.0040d387
jmp 0x406201
mov eax, esi
push eax
lea eax, [ebp - 0x54]
push 0x14
push eax
call fcn.00419fc8
add esp, 0xc
cmp dword [0x42a244], 0
je 0x406225
push 0x297
call fcn.0040d387
jmp 0x406227
mov eax, esi
push eax
lea eax, [ebp - 0x40]
push 0x14
push eax
call fcn.00419fc8
add esp, 0xc
cmp dword [0x42a24c], 0
je 0x40624b
push 0x298
call fcn.0040d387
mov esi, eax
push esi
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.00419fc8
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x2c9
call fcn.0040d387
push eax
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
lea ecx, [ebp - 0x2c0]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406293
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
call fcn.00406813
push dword [edi + 8]
call fcn.00413530
jmp 0x40654e
push esi
call fcn.00404430
cmp eax, 1
jne 0x4062e5
cmp dword [0x42a250], 0
je 0x406548
cmp eax, 4
jne 0x4062f7
cmp dword [0x42a24c], 0
je 0x406548
cmp eax, 5
jne 0x406309
cmp dword [0x42a248], 0
je 0x406548
cmp eax, 6
jne 0x40631b
cmp dword [0x42a244], 0
je 0x406548
cmp dword [0x42a008], 0
je 0x406332
push esi
call fcn.00404984
test eax, eax
jne 0x406548
inc dword [ebp - 0x2cc]
mov ebx, 0x26c
push ebx
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.0041a74c
add esp, 0xc
push 0x26b
push esi
call fcn.00404441
push eax
lea eax, [ebp - 0x2c0]
push ebx
push eax
call fcn.0041a7c6
lea ecx, [ebp - 0x2c0]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406374
mov ebx, dword [ebp - 0x2c8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call edi
push esi
call fcn.00404452
test eax, eax
jne 0x4063ac
mov eax, 0x4014f0
push eax
push 0x401500
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
lea ecx, [ebp - 0x2c0]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063cf
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call edi
cmp dword [0x4271d8], 0
je 0x406509
push esi
call fcn.00407b8a
test eax, eax
je 0x406442
lea eax, [ebp - 0x2d4]
push eax
push esi
call fcn.00407b8a
push eax
call fcn.00407c4f
cmp dword [ebp - 0x2d4], 0
je 0x40643b
push eax
push 0x401504
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
add esp, 0x10
jmp 0x40645b
push 0x40150c
jmp 0x406447
push 0x401518
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
add esp, 0xc
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406464
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call edi
push esi
call fcn.00408667
test eax, eax
je 0x4064ca
lea eax, [ebp - 0x2d8]
push eax
push esi
call fcn.00408667
push eax
call fcn.00407c4f
cmp dword [ebp - 0x2d8], 0
je 0x4064c3
push eax
push 0x401504
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
add esp, 0x10
jmp 0x4064e3
push 0x40150c
jmp 0x4064cf
push 0x401518
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
add esp, 0xc
lea ecx, [ebp - 0x2c0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064ec
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call edi
push 0x401524
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
lea ecx, [ebp - 0x2c0]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40652b
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call edi
push esi
call fcn.0041357f
mov esi, eax
test esi, esi
jne 0x4062cd
push dword [ebp - 0x2cc]
push 0x299
call fcn.0040d387
push eax
lea eax, [ebp - 0x2c0]
push 0x26c
push eax
call fcn.0041a2bf
lea ecx, [ebp - 0x2c0]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406586
mov ebx, dword [ebp - 0x2c8]
push 0
lea eax, [ebp - 0x2c4]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x2c0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2d0]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret 0xc