Function at 0x407500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439e50
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
je 0x407560
cmp byte [edi + 1], 0
je 0x407560
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x407560
mov ecx, esi
call fcn.0041f910
mov eax, dword [0x444090]
test eax, eax
je 0x40755a
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x407de5
cmp byte [edi + 0x2e9d], 0
je 0x4075e7
mov esi, dword [edi + 0x20]
test esi, esi
je 0x4075e7
mov eax, dword [0x444090]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [0x444090], edi
mov dword [edi + 0x2ea0], 0
mov dword [ebp - 0x10], 0
call fcn.00413590
mov edx, 0x43b478
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00402f30
mov esi, eax
test esi, esi
je 0x4075df
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov eax, dword [ebp - 0x18]
mov dword [0x444090], eax
xor esi, esi
cmp dword [edi + 0x2ed4], esi
jle 0x40762a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x2edc]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x40761b
mov eax, dword [edx + 0xc]
push edx
push edi
call eax
mov ecx, dword [ebp - 0x10]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x2ed4]
jl 0x407600
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x1b54], edx
jle 0x407681
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [edi + 0x1b5c]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40766f
mov ecx, esi
call fcn.004048e0
mov eax, dword [0x444090]
test eax, eax
je 0x407663
dec dword [eax + 0x370]
push esi
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x10]
inc edx
add ecx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp edx, dword [edi + 0x1b54]
jl 0x407640
mov ecx, dword [edi + 0x1b5c]
test ecx, ecx
je 0x4076be
mov eax, dword [0x444090]
mov dword [edi + 0x1b58], 0
mov dword [edi + 0x1b54], 0
test eax, eax
je 0x4076ae
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b5c], 0
mov ecx, dword [edi + 0x1b68]
test ecx, ecx
je 0x4076fb
mov eax, dword [0x444090]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x4076eb
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b68], 0
mov ecx, dword [edi + 0x1b74]
test ecx, ecx
je 0x407738
mov eax, dword [0x444090]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x407728
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b9c], 0
mov ecx, dword [edi + 0x1b80]
test ecx, ecx
je 0x40777f
mov eax, dword [0x444090]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x40776f
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b80], 0
mov ecx, dword [edi + 0x1b8c]
test ecx, ecx
je 0x4077bc
mov eax, dword [0x444090]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x4077ac
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1d00], 0
mov dword [edi + 0x1ba4], 0
mov dword [edi + 0x1ba0], 0
mov dword [edi + 0x1c14], 0
mov dword [edi + 0x1c00], 0
mov dword [edi + 0x1ba8], 0
mov ecx, dword [edi + 0x1c9c]
test ecx, ecx
je 0x407835
mov eax, dword [0x444090]
mov dword [edi + 0x1c98], 0
mov dword [edi + 0x1c94], 0
test eax, eax
je 0x407825
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1c9c], 0
mov ecx, dword [edi + 0x1ca8]
test ecx, ecx
je 0x407872
mov eax, dword [0x444090]
mov dword [edi + 0x1ca4], 0
mov dword [edi + 0x1ca0], 0
test eax, eax
je 0x407862
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ca8], 0
mov ecx, dword [edi + 0x1cb4]
test ecx, ecx
je 0x4078af
mov eax, dword [0x444090]
mov dword [edi + 0x1cb0], 0
mov dword [edi + 0x1cac], 0
test eax, eax
je 0x40789f
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cb4], 0
mov ecx, dword [edi + 0x1ce4]
test ecx, ecx
je 0x4078ec
mov eax, dword [0x444090]
mov dword [edi + 0x1ce0], 0
mov dword [edi + 0x1cdc], 0
test eax, eax
je 0x4078dc
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ce4], 0
mov ecx, dword [edi + 0x1cf0]
test ecx, ecx
je 0x407929
mov eax, dword [0x444090]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1ce8], 0
test eax, eax
je 0x407919
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cf0], 0
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x1cf4], edx
jle 0x4079f6
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x1cfc]
mov esi, dword [ecx + eax]
test esi, esi
je 0x4079e0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407980
mov ecx, eax
call fcn.00401270
mov eax, dword [0x444090]
test eax, eax
je 0x407978
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4079a8
mov ecx, eax
call fcn.00401270
mov eax, dword [0x444090]
test eax, eax
je 0x4079a0
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x413d70
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.00438519
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x444090]
test eax, eax
je 0x4079d4
dec dword [eax + 0x370]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0x14]
inc edx
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [edi + 0x1cf4]
jl 0x407940
mov ecx, dword [edi + 0x1cfc]
test ecx, ecx
je 0x407a33
mov eax, dword [0x444090]
mov dword [edi + 0x1cf8], 0
mov dword [edi + 0x1cf4], 0
test eax, eax
je 0x407a23
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cfc], 0
lea ecx, [edi + 0x1f20]
call fcn.00413e80
mov ecx, dword [edi + 0x1f44]
test ecx, ecx
je 0x407a7b
mov eax, dword [0x444090]
mov dword [edi + 0x1f40], 0
mov dword [edi + 0x1f3c], 0
test eax, eax
je 0x407a6b
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f44], 0
mov ecx, dword [edi + 0x1f50]
test ecx, ecx
je 0x407ab8
mov eax, dword [0x444090]
mov dword [edi + 0x1f4c], 0
mov dword [edi + 0x1f48], 0
test eax, eax
je 0x407aa8
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f50], 0
lea ecx, [edi + 0x1edc]
call fcn.00414040
cmp dword [edi + 0x1ef8], 0
mov dword [ebp - 0x14], 0
jle 0x407b4e
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x1f00]
add esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x407b04
mov eax, dword [0x444090]
test eax, eax
je 0x407afe
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.0041f250
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x407b2f
mov eax, dword [0x444090]
test eax, eax
je 0x407b29
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
inc eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0xffffff80
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x1ef8]
jl 0x407ae0
mov ecx, dword [edi + 0x1f00]
test ecx, ecx
je 0x407b8b
mov eax, dword [0x444090]
mov dword [edi + 0x1efc], 0
mov dword [edi + 0x1ef8], 0
test eax, eax
je 0x407b7b
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f00], 0
mov ecx, dword [edi + 0x1f18]
test ecx, ecx
je 0x407bc8
mov eax, dword [0x444090]
mov dword [edi + 0x1f14], 0
mov dword [edi + 0x1f10], 0
test eax, eax
je 0x407bb8
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f18], 0
mov ecx, dword [edi + 0x2e7c]
test ecx, ecx
je 0x407c05
mov eax, dword [0x444090]
mov dword [edi + 0x2e78], 0
mov dword [edi + 0x2e74], 0
test eax, eax
je 0x407bf5
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2e7c], 0
mov ecx, dword [edi + 0x2e88]
test ecx, ecx
je 0x407c42
mov eax, dword [0x444090]
mov dword [edi + 0x2e84], 0
mov dword [edi + 0x2e80], 0
test eax, eax
je 0x407c32
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2e88], 0
mov ecx, dword [edi + 0x1f70]
test ecx, ecx
je 0x407c7f
mov eax, dword [0x444090]
mov dword [edi + 0x1f6c], 0
mov dword [edi + 0x1f68], 0
test eax, eax
je 0x407c6f
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f70], 0
mov ecx, dword [edi + 0x1f7c]
test ecx, ecx
je 0x407cbc
mov eax, dword [0x444090]
mov dword [edi + 0x1f78], 0
mov dword [edi + 0x1f74], 0
test eax, eax
je 0x407cac
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f7c], 0
mov ecx, dword [edi + 0x1f88]
test ecx, ecx
je 0x407cf9
mov eax, dword [0x444090]
mov dword [edi + 0x1f84], 0
mov dword [edi + 0x1f80], 0
test eax, eax
je 0x407ce9
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f88], 0
mov ecx, dword [edi + 0x2ec4]
test ecx, ecx
je 0x407d36
mov eax, dword [0x444090]
mov dword [edi + 0x2ec0], 0
mov dword [edi + 0x2ebc], 0
test eax, eax
je 0x407d26
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2ec4], 0
mov ecx, dword [edi + 0x2eb8]
test ecx, ecx
je 0x407d73
mov eax, dword [0x444090]
mov dword [edi + 0x2eb4], 0
mov dword [edi + 0x2eb0], 0
test eax, eax
je 0x407d63
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2eb8], 0
cmp dword [edi + 0x2eec], 0
je 0x407da5
mov esi, dword [edi + 0x2eec]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x407d9b
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2eec], 0
mov ecx, dword [edi + 0x2ef8]
test ecx, ecx
je 0x407de2
mov eax, dword [0x444090]
mov dword [edi + 0x2ef4], 0
mov dword [edi + 0x2ef0], 0
test eax, eax
je 0x407dd2
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2ef8], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret