Function at 0x10006a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cac0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1007a010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1007a700]
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 0x10006a7e
cmp byte [edi + 1], 0
je 0x10006a7e
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x10006a7e
mov ecx, esi
call fcn.100269e0
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006a73
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x1007a700]
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3bf0]
test ecx, ecx
je 0x10006ac2
mov dword [edi + 0x3bec], 0
mov dword [edi + 0x3be8], 0
test eax, eax
je 0x10006aad
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [0x1007a700]
add esp, 4
mov dword [edi + 0x3bf0], 0
cmp byte [edi], 0
je 0x100073f4
cmp byte [edi + 0x59ed], 0
je 0x10006b29
mov esi, dword [edi + 0x20]
test esi, esi
je 0x10006b29
lea ecx, [ebp - 0x10]
mov dword [eax + 0x59f0], 0
mov dword [ebp - 0x10], 0
call fcn.10019eb0
mov edx, 0x1006c9e4
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.10004890
mov esi, eax
test esi, esi
je 0x10006b29
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 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.10007410
xor esi, esi
lea ecx, [edi + 0x3de8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de0], esi
jle 0x10006b83
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10006b78
mov ecx, eax
call fcn.10007b30
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006b6a
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 0x10006b48
jmp 0x10006b86
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x10006bbe
mov eax, dword [0x1007a700]
mov dword [edi + 0x3de4], 0
mov dword [edi + 0x3de0], 0
test eax, eax
je 0x10006baf
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 0x10006bfb
mov eax, dword [0x1007a700]
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3dec], 0
test eax, eax
je 0x10006beb
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 0x10006c38
mov eax, dword [0x1007a700]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x10006c28
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 0x10006c7f
mov eax, dword [0x1007a700]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x10006c6f
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 0x10006cbc
mov eax, dword [0x1007a700]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x10006cac
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.10002910
mov ecx, dword [edi + 0x4740]
test ecx, ecx
je 0x10006d40
mov eax, dword [0x1007a700]
mov dword [edi + 0x473c], 0
mov dword [edi + 0x4738], 0
test eax, eax
je 0x10006d30
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 0x10006d7d
mov eax, dword [0x1007a700]
mov dword [edi + 0x4748], 0
mov dword [edi + 0x4744], 0
test eax, eax
je 0x10006d6d
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 0x10006dba
mov eax, dword [0x1007a700]
mov dword [edi + 0x4754], 0
mov dword [edi + 0x4750], 0
test eax, eax
je 0x10006daa
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 0x10006df7
mov eax, dword [0x1007a700]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x10006de7
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 0x10006e34
mov eax, dword [0x1007a700]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x10006e24
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4794], 0
xor ecx, ecx
lea edx, [edi + 0x47a4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x479c], ecx
jle 0x10006f01
nop
mov eax, dword [edx]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x10006eef
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10006e8c
mov ecx, eax
call fcn.100026b0
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006e84
dec dword [eax + 0xb0]
push dword [ebp - 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10006eb4
mov ecx, eax
call fcn.100026b0
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006eac
dec dword [eax + 0xb0]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x1001ac70
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.1004b966
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006ee0
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x47a4]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x479c]
jl 0x10006e50
jmp 0x10006f04
mov dword [ebp - 0x14], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x10006f3c
mov eax, dword [0x1007a700]
mov dword [edi + 0x47a0], 0
mov dword [edi + 0x479c], 0
test eax, eax
je 0x10006f2d
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4a20]
call fcn.1001acd0
mov ecx, dword [edi + 0x4a48]
test ecx, ecx
je 0x10006f84
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a44], 0
mov dword [edi + 0x4a40], 0
test eax, eax
je 0x10006f74
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 0x10006fc1
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a50], 0
mov dword [edi + 0x4a4c], 0
test eax, eax
je 0x10006fb1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a54], 0
xor esi, esi
lea eax, [edi + 0x49cc]
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x49c4], esi
jle 0x10007026
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [eax]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x10007002
mov eax, dword [0x1007a700]
test eax, eax
je 0x10006ff9
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
mov dword [ebp - 4], 0xffffffff
add ecx, 0x1c
lea eax, [edi + 0x49cc]
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x49c4]
jl 0x10006fe0
lea eax, [edi + 0x49cc]
jmp 0x10007029
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10007061
mov eax, dword [0x1007a700]
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0
test eax, eax
je 0x10007052
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x49e4]
call fcn.1001ae70
cmp dword [edi + 0x49d8], 0
lea esi, [edi + 0x49e0]
mov dword [ebp - 0x14], 0
jle 0x100070e1
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [esi]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.10026330
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100070b6
mov eax, dword [0x1007a700]
test eax, eax
je 0x100070b0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
lea esi, [edi + 0x49e0]
mov dword [ebp - 4], 0xffffffff
inc eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x49d8]
jl 0x10007087
lea esi, [edi + 0x49e0]
mov ecx, dword [esi]
test ecx, ecx
je 0x10007116
mov eax, dword [0x1007a700]
mov dword [edi + 0x49dc], 0
mov dword [edi + 0x49d8], 0
test eax, eax
je 0x1000710a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x4a18]
test ecx, ecx
je 0x10007153
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a14], 0
mov dword [edi + 0x4a10], 0
test eax, eax
je 0x10007143
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a18], 0
mov ecx, dword [edi + 0x59bc]
test ecx, ecx
je 0x10007190
mov eax, dword [0x1007a700]
mov dword [edi + 0x59b8], 0
mov dword [edi + 0x59b4], 0
test eax, eax
je 0x10007180
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59bc], 0
mov ecx, dword [edi + 0x59c8]
test ecx, ecx
je 0x100071cd
mov eax, dword [0x1007a700]
mov dword [edi + 0x59c4], 0
mov dword [edi + 0x59c0], 0
test eax, eax
je 0x100071bd
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59c8], 0
mov ecx, dword [edi + 0x4a88]
test ecx, ecx
je 0x1000720a
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a84], 0
mov dword [edi + 0x4a80], 0
test eax, eax
je 0x100071fa
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 0x10007247
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a90], 0
mov dword [edi + 0x4a8c], 0
test eax, eax
je 0x10007237
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 0x10007284
mov eax, dword [0x1007a700]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x10007274
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa0], 0
mov ecx, dword [edi + 0x5a14]
test ecx, ecx
je 0x100072c1
mov eax, dword [0x1007a700]
mov dword [edi + 0x5a10], 0
mov dword [edi + 0x5a0c], 0
test eax, eax
je 0x100072b1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a14], 0
mov ecx, dword [edi + 0x5a08]
test ecx, ecx
je 0x100072fe
mov eax, dword [0x1007a700]
mov dword [edi + 0x5a04], 0
mov dword [edi + 0x5a00], 0
test eax, eax
je 0x100072ee
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a08], 0
cmp dword [edi + 0x5a58], 0
je 0x10007330
mov esi, dword [edi + 0x5a58]
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 0x10007326
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a58], 0
mov ecx, dword [edi + 0x5a64]
test ecx, ecx
je 0x1000736d
mov eax, dword [0x1007a700]
mov dword [edi + 0x5a60], 0
mov dword [edi + 0x5a5c], 0
test eax, eax
je 0x1000735d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a64], 0
mov ecx, dword [edi + 0x5a90]
test ecx, ecx
je 0x100073aa
mov eax, dword [0x1007a700]
mov dword [edi + 0x5a8c], 0
mov dword [edi + 0x5a88], 0
test eax, eax
je 0x1000739a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a90], 0
mov ecx, dword [edi + 0x5a9c]
test ecx, ecx
je 0x100073e7
mov eax, dword [0x1007a700]
mov dword [edi + 0x5a98], 0
mov dword [edi + 0x5a94], 0
test eax, eax
je 0x100073d7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5aa0], 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