Function at 0x407e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430a80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x438040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x98]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x407eca
cmp byte [edi + 1], 0
je 0x407eca
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x407eca
mov ecx, esi
call fcn.00421340
mov eax, dword [0x43acf0]
test eax, eax
je 0x407ec4
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x4086fb
cmp byte [edi + 0x2ed9], 0
je 0x407f51
mov esi, dword [edi + 0x20]
test esi, esi
je 0x407f51
mov eax, dword [0x43acf0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [0x43acf0], edi
mov dword [edi + 0x2edc], 0
mov dword [ebp - 0x10], 0
call fcn.00413af0
mov edx, 0x435614
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00403d20
mov esi, eax
test esi, esi
je 0x407f49
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 [0x43acf0], eax
xor esi, esi
cmp dword [edi + 0x2f10], esi
jle 0x407f8a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x2f18]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x407f7b
push eax
mov eax, dword [eax + 0xc]
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 + 0x2f10]
jl 0x407f60
xor esi, esi
lea ecx, [edi + 0x1b5c]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1b54], esi
jle 0x407fdb
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407fd0
mov ecx, eax
call fcn.00405350
mov eax, dword [0x43acf0]
test eax, eax
je 0x407fc2
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
lea ecx, [edi + 0x1b5c]
inc esi
cmp esi, dword [edi + 0x1b54]
jl 0x407fa0
jmp 0x407fde
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x408016
mov eax, dword [0x43acf0]
mov dword [edi + 0x1b58], 0
mov dword [edi + 0x1b54], 0
test eax, eax
je 0x408007
dec dword [eax + 0x370]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x1b68]
test ecx, ecx
je 0x408053
mov eax, dword [0x43acf0]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x408043
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 0x408090
mov eax, dword [0x43acf0]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x408080
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 0x4080d7
mov eax, dword [0x43acf0]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x4080c7
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 0x408114
mov eax, dword [0x43acf0]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x408104
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 0x40818d
mov eax, dword [0x43acf0]
mov dword [edi + 0x1c98], 0
mov dword [edi + 0x1c94], 0
test eax, eax
je 0x40817d
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 0x4081ca
mov eax, dword [0x43acf0]
mov dword [edi + 0x1ca4], 0
mov dword [edi + 0x1ca0], 0
test eax, eax
je 0x4081ba
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 0x408207
mov eax, dword [0x43acf0]
mov dword [edi + 0x1cb0], 0
mov dword [edi + 0x1cac], 0
test eax, eax
je 0x4081f7
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 0x408244
mov eax, dword [0x43acf0]
mov dword [edi + 0x1ce0], 0
mov dword [edi + 0x1cdc], 0
test eax, eax
je 0x408234
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 0x408281
mov eax, dword [0x43acf0]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1ce8], 0
test eax, eax
je 0x408271
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cf0], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1cf4], ecx
jle 0x40833b
mov eax, dword [edi + 0x1cfc]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40832b
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4082cb
mov ecx, eax
call fcn.00402210
mov eax, dword [0x43acf0]
test eax, eax
je 0x4082c3
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 0x4082f3
mov ecx, eax
call fcn.00402210
mov eax, dword [0x43acf0]
test eax, eax
je 0x4082eb
dec dword [eax + 0x370]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x414990
push 2
push 0xc
lea eax, [esi + 0x60]
mov dword [ebp - 4], 0
push eax
call fcn.0042f9e6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x43acf0]
test eax, eax
je 0x408322
dec dword [eax + 0x370]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x1cf4]
jl 0x408292
mov ecx, dword [edi + 0x1cfc]
test ecx, ecx
je 0x408378
mov eax, dword [0x43acf0]
mov dword [edi + 0x1cf8], 0
mov dword [edi + 0x1cf4], 0
test eax, eax
je 0x408368
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cfc], 0
lea ecx, [edi + 0x1f24]
call fcn.00414370
mov ecx, dword [edi + 0x1f4c]
test ecx, ecx
je 0x4083c0
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f48], 0
mov dword [edi + 0x1f44], 0
test eax, eax
je 0x4083b0
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f4c], 0
mov ecx, dword [edi + 0x1f58]
test ecx, ecx
je 0x4083fd
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f54], 0
mov dword [edi + 0x1f50], 0
test eax, eax
je 0x4083ed
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f58], 0
lea ecx, [edi + 0x1edc]
call fcn.00414460
cmp dword [edi + 0x1efc], 0
mov dword [ebp - 0x10], 0
jle 0x408464
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x1f04]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.00420c80
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40844c
mov eax, dword [0x43acf0]
test eax, eax
je 0x408446
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x68
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0x1efc]
jl 0x408420
mov ecx, dword [edi + 0x1f04]
test ecx, ecx
je 0x4084a1
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f00], 0
mov dword [edi + 0x1efc], 0
test eax, eax
je 0x408491
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f04], 0
mov ecx, dword [edi + 0x1f1c]
test ecx, ecx
je 0x4084de
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f18], 0
mov dword [edi + 0x1f14], 0
test eax, eax
je 0x4084ce
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f1c], 0
mov ecx, dword [edi + 0x2eb8]
test ecx, ecx
je 0x40851b
mov eax, dword [0x43acf0]
mov dword [edi + 0x2eb4], 0
mov dword [edi + 0x2eb0], 0
test eax, eax
je 0x40850b
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2eb8], 0
mov ecx, dword [edi + 0x2ec4]
test ecx, ecx
je 0x408558
mov eax, dword [0x43acf0]
mov dword [edi + 0x2ec0], 0
mov dword [edi + 0x2ebc], 0
test eax, eax
je 0x408548
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2ec4], 0
mov ecx, dword [edi + 0x1f78]
test ecx, ecx
je 0x408595
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f74], 0
mov dword [edi + 0x1f70], 0
test eax, eax
je 0x408585
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f78], 0
mov ecx, dword [edi + 0x1f84]
test ecx, ecx
je 0x4085d2
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f80], 0
mov dword [edi + 0x1f7c], 0
test eax, eax
je 0x4085c2
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f84], 0
mov ecx, dword [edi + 0x1f90]
test ecx, ecx
je 0x40860f
mov eax, dword [0x43acf0]
mov dword [edi + 0x1f8c], 0
mov dword [edi + 0x1f88], 0
test eax, eax
je 0x4085ff
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f90], 0
mov ecx, dword [edi + 0x2f00]
test ecx, ecx
je 0x40864c
mov eax, dword [0x43acf0]
mov dword [edi + 0x2efc], 0
mov dword [edi + 0x2ef8], 0
test eax, eax
je 0x40863c
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f00], 0
mov ecx, dword [edi + 0x2ef4]
test ecx, ecx
je 0x408689
mov eax, dword [0x43acf0]
mov dword [edi + 0x2ef0], 0
mov dword [edi + 0x2eec], 0
test eax, eax
je 0x408679
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2ef4], 0
cmp dword [edi + 0x2f28], 0
je 0x4086bb
mov esi, dword [edi + 0x2f28]
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 0x4086b1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2f28], 0
mov ecx, dword [edi + 0x2f34]
test ecx, ecx
je 0x4086f8
mov eax, dword [0x43acf0]
mov dword [edi + 0x2f30], 0
mov dword [edi + 0x2f2c], 0
test eax, eax
je 0x4086e8
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f34], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret