Function at 0x421360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x48800c]
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 0x4213ca
cmp byte [edi + 1], 0
je 0x4213ca
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x4213ca
mov ecx, esi
call fcn.0043ac80
mov eax, dword [0x554f14]
test eax, eax
je 0x4213c4
dec dword [eax + 0x36c]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x421c89
cmp byte [edi + 0x2f69], 0
je 0x421451
mov esi, dword [edi + 0x20]
test esi, esi
je 0x421451
mov eax, dword [0x554f14]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [0x554f14], edi
mov dword [edi + 0x2f6c], 0
mov dword [ebp - 0x10], 0
call fcn.0042e830
mov edx, 0x47e0c4
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.0041c4f0
mov esi, eax
test esi, esi
je 0x421449
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 [0x554f14], eax
xor esi, esi
cmp dword [edi + 0x2fa0], esi
jle 0x42148a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [edi + 0x2fa8]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x42147b
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 + 0x2fa0]
jl 0x421460
xor esi, esi
cmp dword [edi + 0x1b70], esi
jle 0x4214cb
mov eax, dword [edi + 0x1b78]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4214c2
mov ecx, eax
call fcn.0041e5a0
mov eax, dword [0x554f14]
test eax, eax
je 0x4214ba
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x1b70]
jl 0x421494
mov ecx, dword [edi + 0x1b78]
test ecx, ecx
je 0x421508
mov eax, dword [0x554f14]
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b70], 0
test eax, eax
je 0x4214f8
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b78], 0
mov ecx, dword [edi + 0x1b84]
test ecx, ecx
je 0x421545
mov eax, dword [0x554f14]
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1b7c], 0
test eax, eax
je 0x421535
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b84], 0
mov ecx, dword [edi + 0x1b90]
test ecx, ecx
je 0x421582
mov eax, dword [0x554f14]
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1b88], 0
test eax, eax
je 0x421572
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b90], 0
mov dword [edi + 0x1bb8], 0
mov ecx, dword [edi + 0x1b9c]
test ecx, ecx
je 0x4215c9
mov eax, dword [0x554f14]
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1b94], 0
test eax, eax
je 0x4215b9
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b9c], 0
mov ecx, dword [edi + 0x1ba8]
test ecx, ecx
je 0x421606
mov eax, dword [0x554f14]
mov dword [edi + 0x1ba4], 0
mov dword [edi + 0x1ba0], 0
test eax, eax
je 0x4215f6
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ba8], 0
mov dword [edi + 0x1d60], 0
mov dword [edi + 0x1bc0], 0
mov dword [edi + 0x1bbc], 0
mov dword [edi + 0x1c34], 0
mov dword [edi + 0x1c20], 0
mov dword [edi + 0x1bc4], 0
mov ecx, dword [edi + 0x1cfc]
test ecx, ecx
je 0x42167f
mov eax, dword [0x554f14]
mov dword [edi + 0x1cf8], 0
mov dword [edi + 0x1cf4], 0
test eax, eax
je 0x42166f
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cfc], 0
mov ecx, dword [edi + 0x1d08]
test ecx, ecx
je 0x4216bc
mov eax, dword [0x554f14]
mov dword [edi + 0x1d04], 0
mov dword [edi + 0x1d00], 0
test eax, eax
je 0x4216ac
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d08], 0
mov ecx, dword [edi + 0x1d14]
test ecx, ecx
je 0x4216f9
mov eax, dword [0x554f14]
mov dword [edi + 0x1d10], 0
mov dword [edi + 0x1d0c], 0
test eax, eax
je 0x4216e9
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d14], 0
mov ecx, dword [edi + 0x1d44]
test ecx, ecx
je 0x421736
mov eax, dword [0x554f14]
mov dword [edi + 0x1d40], 0
mov dword [edi + 0x1d3c], 0
test eax, eax
je 0x421726
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d44], 0
mov ecx, dword [edi + 0x1d50]
test ecx, ecx
je 0x421773
mov eax, dword [0x554f14]
mov dword [edi + 0x1d4c], 0
mov dword [edi + 0x1d48], 0
test eax, eax
je 0x421763
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d50], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1d54], ecx
jle 0x421831
mov eax, dword [edi + 0x1d5c]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x421821
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4217c4
mov ecx, eax
call fcn.0041a640
mov eax, dword [0x554f14]
test eax, eax
je 0x4217bc
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4217ec
mov ecx, eax
call fcn.0041a640
mov eax, dword [0x554f14]
test eax, eax
je 0x4217e4
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x42f1d0
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.0045a312
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x554f14]
test eax, eax
je 0x421818
dec dword [eax + 0x36c]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x1d54]
jl 0x421784
mov ecx, dword [edi + 0x1d5c]
test ecx, ecx
je 0x42186e
mov eax, dword [0x554f14]
mov dword [edi + 0x1d58], 0
mov dword [edi + 0x1d54], 0
test eax, eax
je 0x42185e
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d5c], 0
lea ecx, [edi + 0x1fc0]
call fcn.0042f2f0
mov ecx, dword [edi + 0x1fe8]
test ecx, ecx
je 0x4218b6
mov eax, dword [0x554f14]
mov dword [edi + 0x1fe4], 0
mov dword [edi + 0x1fe0], 0
test eax, eax
je 0x4218a6
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fe8], 0
mov ecx, dword [edi + 0x1ff4]
test ecx, ecx
je 0x4218f3
mov eax, dword [0x554f14]
mov dword [edi + 0x1ff0], 0
mov dword [edi + 0x1fec], 0
test eax, eax
je 0x4218e3
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ff4], 0
xor esi, esi
cmp dword [edi + 0x1f64], esi
jle 0x42193e
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x1f6c]
mov edx, dword [eax + ecx + 0x14]
test edx, edx
je 0x421928
mov eax, dword [0x554f14]
test eax, eax
je 0x42191f
dec dword [eax + 0x36c]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc esi
add ecx, 0x18
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x1f64]
jl 0x421902
mov ecx, dword [edi + 0x1f6c]
test ecx, ecx
je 0x42197b
mov eax, dword [0x554f14]
mov dword [edi + 0x1f68], 0
mov dword [edi + 0x1f64], 0
test eax, eax
je 0x42196b
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f6c], 0
lea ecx, [edi + 0x1f84]
call fcn.0042f490
cmp dword [edi + 0x1f78], 0
mov dword [ebp - 0x10], 0
jle 0x4219f2
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
mov esi, dword [edi + 0x1f80]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.0043a600
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4219d3
mov eax, dword [0x554f14]
test eax, eax
je 0x4219cd
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add ecx, 0x68
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x1f78]
jl 0x4219a0
mov ecx, dword [edi + 0x1f80]
test ecx, ecx
je 0x421a2f
mov eax, dword [0x554f14]
mov dword [edi + 0x1f7c], 0
mov dword [edi + 0x1f78], 0
test eax, eax
je 0x421a1f
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f80], 0
mov ecx, dword [edi + 0x1fb8]
test ecx, ecx
je 0x421a6c
mov eax, dword [0x554f14]
mov dword [edi + 0x1fb4], 0
mov dword [edi + 0x1fb0], 0
test eax, eax
je 0x421a5c
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fb8], 0
mov ecx, dword [edi + 0x2f48]
test ecx, ecx
je 0x421aa9
mov eax, dword [0x554f14]
mov dword [edi + 0x2f44], 0
mov dword [edi + 0x2f40], 0
test eax, eax
je 0x421a99
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f48], 0
mov ecx, dword [edi + 0x2f54]
test ecx, ecx
je 0x421ae6
mov eax, dword [0x554f14]
mov dword [edi + 0x2f50], 0
mov dword [edi + 0x2f4c], 0
test eax, eax
je 0x421ad6
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f54], 0
mov ecx, dword [edi + 0x2014]
test ecx, ecx
je 0x421b23
mov eax, dword [0x554f14]
mov dword [edi + 0x2010], 0
mov dword [edi + 0x200c], 0
test eax, eax
je 0x421b13
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2014], 0
mov ecx, dword [edi + 0x2020]
test ecx, ecx
je 0x421b60
mov eax, dword [0x554f14]
mov dword [edi + 0x201c], 0
mov dword [edi + 0x2018], 0
test eax, eax
je 0x421b50
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2020], 0
mov ecx, dword [edi + 0x202c]
test ecx, ecx
je 0x421b9d
mov eax, dword [0x554f14]
mov dword [edi + 0x2028], 0
mov dword [edi + 0x2024], 0
test eax, eax
je 0x421b8d
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x202c], 0
mov ecx, dword [edi + 0x2f90]
test ecx, ecx
je 0x421bda
mov eax, dword [0x554f14]
mov dword [edi + 0x2f8c], 0
mov dword [edi + 0x2f88], 0
test eax, eax
je 0x421bca
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f90], 0
mov ecx, dword [edi + 0x2f84]
test ecx, ecx
je 0x421c17
mov eax, dword [0x554f14]
mov dword [edi + 0x2f80], 0
mov dword [edi + 0x2f7c], 0
test eax, eax
je 0x421c07
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f84], 0
cmp dword [edi + 0x2fb8], 0
je 0x421c49
mov esi, dword [edi + 0x2fb8]
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 0x421c3f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2fb8], 0
mov ecx, dword [edi + 0x2fc4]
test ecx, ecx
je 0x421c86
mov eax, dword [0x554f14]
mov dword [edi + 0x2fc0], 0
mov dword [edi + 0x2fbc], 0
test eax, eax
je 0x421c76
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2fc4], 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