Function at 0x100057f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b470
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10072040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10072700]
mov edi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x1000585e
cmp byte [edi + 1], 0
je 0x1000585e
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x1000585e
mov ecx, esi
call fcn.10025b10
mov eax, dword [0x10072700]
test eax, eax
je 0x10005853
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x10072700]
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3bf0]
test ecx, ecx
je 0x100058a2
mov dword [edi + 0x3bec], 0
mov dword [edi + 0x3be8], 0
test eax, eax
je 0x1000588d
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [0x10072700]
add esp, 4
mov dword [edi + 0x3bf0], 0
cmp byte [edi], 0
je 0x100061ad
cmp byte [edi + 0x59f5], 0
je 0x10005909
mov esi, dword [edi + 0x20]
test esi, esi
je 0x10005909
lea ecx, [ebp - 0x10]
mov dword [eax + 0x59f8], 0
mov dword [ebp - 0x10], 0
call fcn.10018520
mov edx, 0x10069efc
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.10003680
mov esi, eax
test esi, esi
je 0x10005909
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 edx, 6
mov ecx, edi
call fcn.100061d0
xor esi, esi
lea ecx, [edi + 0x3de8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de0], esi
jle 0x10005963
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005958
mov ecx, eax
call fcn.100068f0
mov eax, dword [0x10072700]
test eax, eax
je 0x1000594a
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3de8]
inc esi
cmp esi, dword [edi + 0x3de0]
jl 0x10005928
jmp 0x10005966
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1000599e
mov eax, dword [0x10072700]
mov dword [edi + 0x3de4], 0
mov dword [edi + 0x3de0], 0
test eax, eax
je 0x1000598f
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3df4]
test ecx, ecx
je 0x100059db
mov eax, dword [0x10072700]
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3dec], 0
test eax, eax
je 0x100059cb
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3df4], 0
mov ecx, dword [edi + 0x3e00]
test ecx, ecx
je 0x10005a18
mov eax, dword [0x10072700]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x10005a08
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e00], 0
mov dword [edi + 0x3e28], 0
mov ecx, dword [edi + 0x3e0c]
test ecx, ecx
je 0x10005a5f
mov eax, dword [0x10072700]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x10005a4f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e0c], 0
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
je 0x10005a9c
mov eax, dword [0x10072700]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x10005a8c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e18], 0
lea ecx, [edi + 0x4540]
mov dword [edi + 0x47a8], 0
mov dword [edi + 0x3e30], 0
mov dword [edi + 0x3e2c], 0
mov dword [edi + 0x3ea4], 0
mov dword [edi + 0x3e90], 0
mov dword [edi + 0x3e34], 0
call fcn.100013d0
mov ecx, dword [edi + 0x4740]
test ecx, ecx
je 0x10005b20
mov eax, dword [0x10072700]
mov dword [edi + 0x473c], 0
mov dword [edi + 0x4738], 0
test eax, eax
je 0x10005b10
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4740], 0
mov ecx, dword [edi + 0x474c]
test ecx, ecx
je 0x10005b5d
mov eax, dword [0x10072700]
mov dword [edi + 0x4748], 0
mov dword [edi + 0x4744], 0
test eax, eax
je 0x10005b4d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x474c], 0
mov ecx, dword [edi + 0x4758]
test ecx, ecx
je 0x10005b9a
mov eax, dword [0x10072700]
mov dword [edi + 0x4754], 0
mov dword [edi + 0x4750], 0
test eax, eax
je 0x10005b8a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4758], 0
mov ecx, dword [edi + 0x4788]
test ecx, ecx
je 0x10005bd7
mov eax, dword [0x10072700]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x10005bc7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4788], 0
mov ecx, dword [edi + 0x4794]
test ecx, ecx
je 0x10005c14
mov eax, dword [0x10072700]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x10005c04
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4794], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x479c], ecx
jle 0x10005cd2
mov eax, dword [edi + 0x47a4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x10005cc2
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005c65
mov ecx, eax
call fcn.10001170
mov eax, dword [0x10072700]
test eax, eax
je 0x10005c5d
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 0x10005c8d
mov ecx, eax
call fcn.10001170
mov eax, dword [0x10072700]
test eax, eax
je 0x10005c85
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x10019300
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.10049d51
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x10072700]
test eax, eax
je 0x10005cb9
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 + 0x479c]
jl 0x10005c25
mov ecx, dword [edi + 0x47a4]
test ecx, ecx
je 0x10005d0f
mov eax, dword [0x10072700]
mov dword [edi + 0x47a0], 0
mov dword [edi + 0x479c], 0
test eax, eax
je 0x10005cff
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47a4], 0
lea ecx, [edi + 0x4a20]
call fcn.10019360
mov ecx, dword [edi + 0x4a48]
test ecx, ecx
je 0x10005d57
mov eax, dword [0x10072700]
mov dword [edi + 0x4a44], 0
mov dword [edi + 0x4a40], 0
test eax, eax
je 0x10005d47
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a48], 0
mov ecx, dword [edi + 0x4a54]
test ecx, ecx
je 0x10005d94
mov eax, dword [0x10072700]
mov dword [edi + 0x4a50], 0
mov dword [edi + 0x4a4c], 0
test eax, eax
je 0x10005d84
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a54], 0
xor esi, esi
cmp dword [edi + 0x49c4], esi
jle 0x10005ddf
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x49cc]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x10005dc9
mov eax, dword [0x10072700]
test eax, eax
je 0x10005dc0
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 + 0x49c4]
jl 0x10005da3
mov ecx, dword [edi + 0x49cc]
test ecx, ecx
je 0x10005e1c
mov eax, dword [0x10072700]
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0
test eax, eax
je 0x10005e0c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49cc], 0
lea ecx, [edi + 0x49e4]
call fcn.10019510
cmp dword [edi + 0x49d8], 0
mov dword [ebp - 0x10], 0
jle 0x10005e92
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x49e0]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.10025440
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10005e73
mov eax, dword [0x10072700]
test eax, eax
je 0x10005e6d
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 + 0x49d8]
jl 0x10005e40
mov ecx, dword [edi + 0x49e0]
test ecx, ecx
je 0x10005ecf
mov eax, dword [0x10072700]
mov dword [edi + 0x49dc], 0
mov dword [edi + 0x49d8], 0
test eax, eax
je 0x10005ebf
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x49e0], 0
mov ecx, dword [edi + 0x4a18]
test ecx, ecx
je 0x10005f0c
mov eax, dword [0x10072700]
mov dword [edi + 0x4a14], 0
mov dword [edi + 0x4a10], 0
test eax, eax
je 0x10005efc
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a18], 0
mov ecx, dword [edi + 0x59c4]
test ecx, ecx
je 0x10005f49
mov eax, dword [0x10072700]
mov dword [edi + 0x59c0], 0
mov dword [edi + 0x59bc], 0
test eax, eax
je 0x10005f39
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59c4], 0
mov ecx, dword [edi + 0x59d0]
test ecx, ecx
je 0x10005f86
mov eax, dword [0x10072700]
mov dword [edi + 0x59cc], 0
mov dword [edi + 0x59c8], 0
test eax, eax
je 0x10005f76
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59d0], 0
mov ecx, dword [edi + 0x4a88]
test ecx, ecx
je 0x10005fc3
mov eax, dword [0x10072700]
mov dword [edi + 0x4a84], 0
mov dword [edi + 0x4a80], 0
test eax, eax
je 0x10005fb3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a88], 0
mov ecx, dword [edi + 0x4a94]
test ecx, ecx
je 0x10006000
mov eax, dword [0x10072700]
mov dword [edi + 0x4a90], 0
mov dword [edi + 0x4a8c], 0
test eax, eax
je 0x10005ff0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a94], 0
mov ecx, dword [edi + 0x4aa0]
test ecx, ecx
je 0x1000603d
mov eax, dword [0x10072700]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x1000602d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa0], 0
mov ecx, dword [edi + 0x5a1c]
test ecx, ecx
je 0x1000607a
mov eax, dword [0x10072700]
mov dword [edi + 0x5a18], 0
mov dword [edi + 0x5a14], 0
test eax, eax
je 0x1000606a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a1c], 0
mov ecx, dword [edi + 0x5a10]
test ecx, ecx
je 0x100060b7
mov eax, dword [0x10072700]
mov dword [edi + 0x5a0c], 0
mov dword [edi + 0x5a08], 0
test eax, eax
je 0x100060a7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a10], 0
cmp dword [edi + 0x5a60], 0
je 0x100060e9
mov esi, dword [edi + 0x5a60]
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 0x100060df
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a60], 0
mov ecx, dword [edi + 0x5a6c]
test ecx, ecx
je 0x10006126
mov eax, dword [0x10072700]
mov dword [edi + 0x5a68], 0
mov dword [edi + 0x5a64], 0
test eax, eax
je 0x10006116
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a6c], 0
mov ecx, dword [edi + 0x5a98]
test ecx, ecx
je 0x10006163
mov eax, dword [0x10072700]
mov dword [edi + 0x5a94], 0
mov dword [edi + 0x5a90], 0
test eax, eax
je 0x10006153
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a98], 0
mov ecx, dword [edi + 0x5aa4]
test ecx, ecx
je 0x100061a0
mov eax, dword [0x10072700]
mov dword [edi + 0x5aa0], 0
mov dword [edi + 0x5a9c], 0
test eax, eax
je 0x10006190
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aa4], 0
mov dword [edi + 0x5aa8], 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