Function at 0x422400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x57d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x5af950]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x422468
cmp byte [edi + 1], 0
je 0x422468
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x422468
mov ecx, esi
call fcn.0044ee90
mov eax, dword [0x5af950]
test eax, eax
je 0x422462
dec dword [eax + 0xb0]
push esi
call ebx
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3c20]
test ecx, ecx
je 0x4224ac
mov eax, dword [0x5af950]
mov dword [edi + 0x3c1c], 0
mov dword [edi + 0x3c18], 0
test eax, eax
je 0x42249c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c20], 0
cmp byte [edi], 0
je 0x422dfd
cmp byte [edi + 0x5a35], 0
je 0x422518
mov esi, dword [edi + 0x20]
test esi, esi
je 0x422518
mov eax, dword [0x5af950]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a38], 0
call fcn.00434ca0
mov edx, 0x570978
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00420c00
mov esi, eax
test esi, esi
je 0x422518
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
xor esi, esi
cmp dword [edi + 0x5a6c], esi
jle 0x42255a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x5a74]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x42254b
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 + 0x5a6c]
jl 0x422530
xor esi, esi
lea ecx, [edi + 0x3e20]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3e18], esi
jle 0x4225ab
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4225a0
mov ecx, eax
call fcn.004234f0
mov eax, dword [0x5af950]
test eax, eax
je 0x422592
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3e20]
inc esi
cmp esi, dword [edi + 0x3e18]
jl 0x422570
jmp 0x4225ae
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4225e6
mov eax, dword [0x5af950]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x4225d7
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3e2c]
test ecx, ecx
je 0x422623
mov eax, dword [0x5af950]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x422613
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e2c], 0
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
je 0x422660
mov eax, dword [0x5af950]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x422650
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e38], 0
mov dword [edi + 0x3e60], 0
mov ecx, dword [edi + 0x3e44]
test ecx, ecx
je 0x4226a7
mov eax, dword [0x5af950]
mov dword [edi + 0x3e40], 0
mov dword [edi + 0x3e3c], 0
test eax, eax
je 0x422697
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e44], 0
mov ecx, dword [edi + 0x3e50]
test ecx, ecx
je 0x4226e4
mov eax, dword [0x5af950]
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3e48], 0
test eax, eax
je 0x4226d4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e50], 0
lea ecx, [edi + 0x4578]
mov dword [edi + 0x47e0], 0
mov dword [edi + 0x3e68], 0
mov dword [edi + 0x3e64], 0
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3ec8], 0
mov dword [edi + 0x3e6c], 0
call fcn.0041eb30
mov ecx, dword [edi + 0x4778]
test ecx, ecx
je 0x422768
mov eax, dword [0x5af950]
mov dword [edi + 0x4774], 0
mov dword [edi + 0x4770], 0
test eax, eax
je 0x422758
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4778], 0
mov ecx, dword [edi + 0x4784]
test ecx, ecx
je 0x4227a5
mov eax, dword [0x5af950]
mov dword [edi + 0x4780], 0
mov dword [edi + 0x477c], 0
test eax, eax
je 0x422795
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4784], 0
mov ecx, dword [edi + 0x4790]
test ecx, ecx
je 0x4227e2
mov eax, dword [0x5af950]
mov dword [edi + 0x478c], 0
mov dword [edi + 0x4788], 0
test eax, eax
je 0x4227d2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4790], 0
mov ecx, dword [edi + 0x47c0]
test ecx, ecx
je 0x42281f
mov eax, dword [0x5af950]
mov dword [edi + 0x47bc], 0
mov dword [edi + 0x47b8], 0
test eax, eax
je 0x42280f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47c0], 0
mov ecx, dword [edi + 0x47cc]
test ecx, ecx
je 0x42285c
mov eax, dword [0x5af950]
mov dword [edi + 0x47c8], 0
mov dword [edi + 0x47c4], 0
test eax, eax
je 0x42284c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47cc], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x47d4], ecx
jle 0x42291d
nop dword [eax]
mov eax, dword [edi + 0x47dc]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x42290d
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4228b0
mov ecx, eax
call fcn.0041e990
mov eax, dword [0x5af950]
test eax, eax
je 0x4228a8
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4228d8
mov ecx, eax
call fcn.0041e990
mov eax, dword [0x5af950]
test eax, eax
je 0x4228d0
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x435bb0
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.00492cd9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5af950]
test eax, eax
je 0x422904
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x47d4]
jl 0x422870
mov ecx, dword [edi + 0x47dc]
test ecx, ecx
je 0x42295a
mov eax, dword [0x5af950]
mov dword [edi + 0x47d8], 0
mov dword [edi + 0x47d4], 0
test eax, eax
je 0x42294a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47dc], 0
lea ecx, [edi + 0x4a58]
call fcn.00435c10
mov ecx, dword [edi + 0x4a80]
test ecx, ecx
je 0x4229a2
mov eax, dword [0x5af950]
mov dword [edi + 0x4a7c], 0
mov dword [edi + 0x4a78], 0
test eax, eax
je 0x422992
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a80], 0
mov ecx, dword [edi + 0x4a8c]
test ecx, ecx
je 0x4229df
mov eax, dword [0x5af950]
mov dword [edi + 0x4a88], 0
mov dword [edi + 0x4a84], 0
test eax, eax
je 0x4229cf
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a8c], 0
xor esi, esi
cmp dword [edi + 0x49fc], esi
jle 0x422a2c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov eax, dword [edi + 0x4a04]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x422a16
mov eax, dword [0x5af950]
test eax, eax
je 0x422a0d
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc esi
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x49fc]
jl 0x4229f0
mov ecx, dword [edi + 0x4a04]
test ecx, ecx
je 0x422a69
mov eax, dword [0x5af950]
mov dword [edi + 0x4a00], 0
mov dword [edi + 0x49fc], 0
test eax, eax
je 0x422a59
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a04], 0
lea ecx, [edi + 0x4a1c]
call fcn.00435dc0
cmp dword [edi + 0x4a10], 0
mov dword [ebp - 0x10], 0
jle 0x422ae2
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x4a18]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.0044e740
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x422ac3
mov eax, dword [0x5af950]
test eax, eax
je 0x422abd
dec dword [eax + 0xb0]
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 + 0x4a10]
jl 0x422a90
mov ecx, dword [edi + 0x4a18]
test ecx, ecx
je 0x422b1f
mov eax, dword [0x5af950]
mov dword [edi + 0x4a14], 0
mov dword [edi + 0x4a10], 0
test eax, eax
je 0x422b0f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a18], 0
mov ecx, dword [edi + 0x4a50]
test ecx, ecx
je 0x422b5c
mov eax, dword [0x5af950]
mov dword [edi + 0x4a4c], 0
mov dword [edi + 0x4a48], 0
test eax, eax
je 0x422b4c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a50], 0
mov ecx, dword [edi + 0x5a04]
test ecx, ecx
je 0x422b99
mov eax, dword [0x5af950]
mov dword [edi + 0x5a00], 0
mov dword [edi + 0x59fc], 0
test eax, eax
je 0x422b89
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a04], 0
mov ecx, dword [edi + 0x5a10]
test ecx, ecx
je 0x422bd6
mov eax, dword [0x5af950]
mov dword [edi + 0x5a0c], 0
mov dword [edi + 0x5a08], 0
test eax, eax
je 0x422bc6
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a10], 0
mov ecx, dword [edi + 0x4ac0]
test ecx, ecx
je 0x422c13
mov eax, dword [0x5af950]
mov dword [edi + 0x4abc], 0
mov dword [edi + 0x4ab8], 0
test eax, eax
je 0x422c03
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4ac0], 0
mov ecx, dword [edi + 0x4acc]
test ecx, ecx
je 0x422c50
mov eax, dword [0x5af950]
mov dword [edi + 0x4ac8], 0
mov dword [edi + 0x4ac4], 0
test eax, eax
je 0x422c40
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4acc], 0
mov ecx, dword [edi + 0x4ad8]
test ecx, ecx
je 0x422c8d
mov eax, dword [0x5af950]
mov dword [edi + 0x4ad4], 0
mov dword [edi + 0x4ad0], 0
test eax, eax
je 0x422c7d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4ad8], 0
mov ecx, dword [edi + 0x5a5c]
test ecx, ecx
je 0x422cca
mov eax, dword [0x5af950]
mov dword [edi + 0x5a58], 0
mov dword [edi + 0x5a54], 0
test eax, eax
je 0x422cba
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a5c], 0
mov ecx, dword [edi + 0x5a50]
test ecx, ecx
je 0x422d07
mov eax, dword [0x5af950]
mov dword [edi + 0x5a4c], 0
mov dword [edi + 0x5a48], 0
test eax, eax
je 0x422cf7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a50], 0
cmp dword [edi + 0x5aa0], 0
je 0x422d39
mov esi, dword [edi + 0x5aa0]
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 0x422d2f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5aa0], 0
mov ecx, dword [edi + 0x5aac]
test ecx, ecx
je 0x422d76
mov eax, dword [0x5af950]
mov dword [edi + 0x5aa8], 0
mov dword [edi + 0x5aa4], 0
test eax, eax
je 0x422d66
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aac], 0
mov ecx, dword [edi + 0x5ad8]
test ecx, ecx
je 0x422db3
mov eax, dword [0x5af950]
mov dword [edi + 0x5ad4], 0
mov dword [edi + 0x5ad0], 0
test eax, eax
je 0x422da3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ad8], 0
mov ecx, dword [edi + 0x5ae4]
test ecx, ecx
je 0x422df0
mov eax, dword [0x5af950]
mov dword [edi + 0x5ae0], 0
mov dword [edi + 0x5adc], 0
test eax, eax
je 0x422de0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ae4], 0
mov dword [edi + 0x5ae8], 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