Function at 0x405300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bbb0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x457008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x457718]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x405368
cmp byte [edi + 1], 0
je 0x405368
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x405368
mov ecx, esi
call fcn.00425350
mov eax, dword [0x457718]
test eax, eax
je 0x405362
dec dword [eax + 0xb4]
push esi
call ebx
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3bf4]
test ecx, ecx
je 0x4053ac
mov eax, dword [0x457718]
mov dword [edi + 0x3bf0], 0
mov dword [edi + 0x3bec], 0
test eax, eax
je 0x40539c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3bf4], 0
cmp byte [edi], 0
je 0x405d46
cmp byte [edi + 0x5a29], 0
je 0x405418
mov esi, dword [edi + 0x20]
test esi, esi
je 0x405418
mov eax, dword [0x457718]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a2c], 0
call fcn.00418300
mov edx, 0x44e130
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.004037f0
mov esi, eax
test esi, esi
je 0x405418
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 + 0x5a60], esi
jle 0x40545a
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x5a68]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x40544b
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 + 0x5a60]
jl 0x405430
xor esi, esi
lea ecx, [edi + 0x3e08]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3e00], esi
jle 0x4054ab
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4054a0
mov ecx, eax
call fcn.004063b0
mov eax, dword [0x457718]
test eax, eax
je 0x405492
dec dword [eax + 0xb4]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3e08]
inc esi
cmp esi, dword [edi + 0x3e00]
jl 0x405470
jmp 0x4054ae
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x4054e6
mov eax, dword [0x457718]
mov dword [edi + 0x3e04], 0
mov dword [edi + 0x3e00], 0
test eax, eax
je 0x4054d7
dec dword [eax + 0xb4]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3e14]
test ecx, ecx
je 0x405523
mov eax, dword [0x457718]
mov dword [edi + 0x3e10], 0
mov dword [edi + 0x3e0c], 0
test eax, eax
je 0x405513
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e14], 0
mov ecx, dword [edi + 0x3e20]
test ecx, ecx
je 0x405560
mov eax, dword [0x457718]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x405550
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e20], 0
mov dword [edi + 0x3e48], 0
mov ecx, dword [edi + 0x3e2c]
test ecx, ecx
je 0x4055a7
mov eax, dword [0x457718]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x405597
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e2c], 0
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
je 0x4055e4
mov eax, dword [0x457718]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x4055d4
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e38], 0
lea ecx, [edi + 0x4560]
mov dword [edi + 0x47c8], 0
mov dword [edi + 0x3e50], 0
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3ec4], 0
mov dword [edi + 0x3eb0], 0
mov dword [edi + 0x3e54], 0
call fcn.004013d0
mov ecx, dword [edi + 0x4760]
test ecx, ecx
je 0x405668
mov eax, dword [0x457718]
mov dword [edi + 0x475c], 0
mov dword [edi + 0x4758], 0
test eax, eax
je 0x405658
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4760], 0
mov ecx, dword [edi + 0x476c]
test ecx, ecx
je 0x4056a5
mov eax, dword [0x457718]
mov dword [edi + 0x4768], 0
mov dword [edi + 0x4764], 0
test eax, eax
je 0x405695
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x476c], 0
mov ecx, dword [edi + 0x4778]
test ecx, ecx
je 0x4056e2
mov eax, dword [0x457718]
mov dword [edi + 0x4774], 0
mov dword [edi + 0x4770], 0
test eax, eax
je 0x4056d2
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4778], 0
mov ecx, dword [edi + 0x47a8]
test ecx, ecx
je 0x40571f
mov eax, dword [0x457718]
mov dword [edi + 0x47a4], 0
mov dword [edi + 0x47a0], 0
test eax, eax
je 0x40570f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a8], 0
mov ecx, dword [edi + 0x47b4]
test ecx, ecx
je 0x40575c
mov eax, dword [0x457718]
mov dword [edi + 0x47b0], 0
mov dword [edi + 0x47ac], 0
test eax, eax
je 0x40574c
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47b4], 0
xor ecx, ecx
lea edx, [edi + 0x47c4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x47bc], ecx
jle 0x405823
mov eax, dword [edx]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x405811
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4057ab
mov ecx, eax
call fcn.004011a0
mov eax, dword [0x457718]
test eax, eax
je 0x4057a3
dec dword [eax + 0xb4]
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4057d3
mov ecx, eax
call fcn.004011a0
mov eax, dword [0x457718]
test eax, eax
je 0x4057cb
dec dword [eax + 0xb4]
push dword [ebp - 0x1c]
call ebx
add esp, 4
push 0x419970
push 2
push 0xc
lea eax, [esi + 0x64]
mov dword [ebp - 4], 0
push eax
call fcn.0044a90b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x457718]
test eax, eax
je 0x405802
dec dword [eax + 0xb4]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x47c4]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x47bc]
jl 0x405776
jmp 0x405826
mov dword [ebp - 0x14], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x40585e
mov eax, dword [0x457718]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x47bc], 0
test eax, eax
je 0x40584f
dec dword [eax + 0xb4]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4a3c]
call fcn.004193c0
mov ecx, dword [edi + 0x4a64]
test ecx, ecx
je 0x4058a6
mov eax, dword [0x457718]
mov dword [edi + 0x4a60], 0
mov dword [edi + 0x4a5c], 0
test eax, eax
je 0x405896
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a64], 0
mov ecx, dword [edi + 0x4a70]
test ecx, ecx
je 0x4058e3
mov eax, dword [0x457718]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x4058d3
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a70], 0
xor esi, esi
lea eax, [edi + 0x49e8]
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x49e0], esi
jle 0x40593f
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
mov eax, dword [eax]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x405922
mov eax, dword [0x457718]
test eax, eax
je 0x405919
dec dword [eax + 0xb4]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
lea eax, [edi + 0x49e8]
add ecx, 0x1c
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x49e0]
jl 0x405900
lea eax, [edi + 0x49e8]
jmp 0x405942
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x40597a
mov eax, dword [0x457718]
mov dword [edi + 0x49e4], 0
mov dword [edi + 0x49e0], 0
test eax, eax
je 0x40596b
dec dword [eax + 0xb4]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4a00]
call fcn.004194b0
cmp dword [edi + 0x49f4], 0
lea esi, [edi + 0x49fc]
mov dword [ebp - 0x14], 0
jle 0x4059ec
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [esi]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.00424cd0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4059c8
mov eax, dword [0x457718]
test eax, eax
je 0x4059c2
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
lea esi, [edi + 0x49fc]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x49f4]
jl 0x4059a0
lea esi, [edi + 0x49fc]
mov ecx, dword [esi]
test ecx, ecx
je 0x405a21
mov eax, dword [0x457718]
mov dword [edi + 0x49f8], 0
mov dword [edi + 0x49f4], 0
test eax, eax
je 0x405a15
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x4a34]
test ecx, ecx
je 0x405a5e
mov eax, dword [0x457718]
mov dword [edi + 0x4a30], 0
mov dword [edi + 0x4a2c], 0
test eax, eax
je 0x405a4e
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a34], 0
mov ecx, dword [edi + 0x59f8]
test ecx, ecx
je 0x405a9b
mov eax, dword [0x457718]
mov dword [edi + 0x59f4], 0
mov dword [edi + 0x59f0], 0
test eax, eax
je 0x405a8b
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59f8], 0
mov ecx, dword [edi + 0x5a04]
test ecx, ecx
je 0x405ad8
mov eax, dword [0x457718]
mov dword [edi + 0x5a00], 0
mov dword [edi + 0x59fc], 0
test eax, eax
je 0x405ac8
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a04], 0
mov ecx, dword [edi + 0x4aa4]
test ecx, ecx
je 0x405b15
mov eax, dword [0x457718]
mov dword [edi + 0x4aa0], 0
mov dword [edi + 0x4a9c], 0
test eax, eax
je 0x405b05
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa4], 0
mov ecx, dword [edi + 0x4ab0]
test ecx, ecx
je 0x405b52
mov eax, dword [0x457718]
mov dword [edi + 0x4aac], 0
mov dword [edi + 0x4aa8], 0
test eax, eax
je 0x405b42
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4ab0], 0
mov ecx, dword [edi + 0x4abc]
test ecx, ecx
je 0x405b8f
mov eax, dword [0x457718]
mov dword [edi + 0x4ab8], 0
mov dword [edi + 0x4ab4], 0
test eax, eax
je 0x405b7f
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4abc], 0
mov dword [edi + 0x5904], 0
mov ecx, dword [edi + 0x5910]
test ecx, ecx
je 0x405bd6
mov eax, dword [0x457718]
mov dword [edi + 0x590c], 0
mov dword [edi + 0x5908], 0
test eax, eax
je 0x405bc6
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5910], 0
mov ecx, dword [edi + 0x5a50]
test ecx, ecx
je 0x405c13
mov eax, dword [0x457718]
mov dword [edi + 0x5a4c], 0
mov dword [edi + 0x5a48], 0
test eax, eax
je 0x405c03
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a50], 0
mov ecx, dword [edi + 0x5a44]
test ecx, ecx
je 0x405c50
mov eax, dword [0x457718]
mov dword [edi + 0x5a40], 0
mov dword [edi + 0x5a3c], 0
test eax, eax
je 0x405c40
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a44], 0
cmp dword [edi + 0x5a94], 0
je 0x405c82
mov esi, dword [edi + 0x5a94]
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 0x405c78
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a94], 0
mov ecx, dword [edi + 0x5aa0]
test ecx, ecx
je 0x405cbf
mov eax, dword [0x457718]
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5a98], 0
test eax, eax
je 0x405caf
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aa0], 0
mov ecx, dword [edi + 0x5acc]
test ecx, ecx
je 0x405cfc
mov eax, dword [0x457718]
mov dword [edi + 0x5ac8], 0
mov dword [edi + 0x5ac4], 0
test eax, eax
je 0x405cec
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5acc], 0
mov ecx, dword [edi + 0x5ad8]
test ecx, ecx
je 0x405d39
mov eax, dword [0x457718]
mov dword [edi + 0x5ad4], 0
mov dword [edi + 0x5ad0], 0
test eax, eax
je 0x405d29
dec dword [eax + 0xb4]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5ad8], 0
mov dword [edi + 0x5adc], 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