Function at 0x1000eb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aec50
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c83c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x101423a0]
mov edi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x1000ebfe
cmp byte [edi + 1], 0
je 0x1000ebfe
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x1000ebfe
mov ecx, esi
call fcn.100357c0
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000ebf3
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x101423a0]
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x40], 0
je 0x1000f50d
cmp byte [edi + 0x5378], 0
je 0x1000ec6c
mov esi, dword [edi + 0x20]
test esi, esi
je 0x1000ec6c
lea ecx, [ebp - 0x10]
mov dword [eax + 0x537c], 0
mov dword [ebp - 0x10], 0
call fcn.1001e4b0
mov edx, 0x100c3148
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.10009380
mov esi, eax
test esi, esi
je 0x1000ec6c
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
call fcn.100209b0
xor esi, esi
cmp dword [edi + 0x5350], esi
jle 0x1000ecb8
nop dword [eax + eax]
mov eax, dword [edi + 0x5358]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000ecaf
mov ecx, eax
call fcn.10022060
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000eca7
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x5350]
jl 0x1000ec80
xor esi, esi
cmp dword [edi + 0x53b0], esi
jle 0x1000ecfa
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x53b8]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x1000eceb
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 + 0x53b0]
jl 0x1000ecd0
xor esi, esi
lea ecx, [edi + 0x3ed4]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3ecc], esi
jle 0x1000ed4b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000ed40
mov ecx, eax
call fcn.1000b990
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000ed32
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3ed4]
inc esi
cmp esi, dword [edi + 0x3ecc]
jl 0x1000ed10
jmp 0x1000ed4e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1000ed86
mov eax, dword [0x101423a0]
mov dword [edi + 0x3ed0], 0
mov dword [edi + 0x3ecc], 0
test eax, eax
je 0x1000ed77
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3ee0]
test ecx, ecx
je 0x1000edc3
mov eax, dword [0x101423a0]
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3ed8], 0
test eax, eax
je 0x1000edb3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ee0], 0
mov ecx, dword [edi + 0x3eec]
test ecx, ecx
je 0x1000ee00
mov eax, dword [0x101423a0]
mov dword [edi + 0x3ee8], 0
mov dword [edi + 0x3ee4], 0
test eax, eax
je 0x1000edf0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3eec], 0
mov dword [edi + 0x3f14], 0
mov ecx, dword [edi + 0x3ef8]
test ecx, ecx
je 0x1000ee47
mov eax, dword [0x101423a0]
mov dword [edi + 0x3ef4], 0
mov dword [edi + 0x3ef0], 0
test eax, eax
je 0x1000ee37
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ef8], 0
mov ecx, dword [edi + 0x3f04]
test ecx, ecx
je 0x1000ee84
mov eax, dword [0x101423a0]
mov dword [edi + 0x3f00], 0
mov dword [edi + 0x3efc], 0
test eax, eax
je 0x1000ee74
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3f04], 0
mov dword [edi + 0x4130], 0
mov dword [edi + 0x3f1c], 0
mov dword [edi + 0x3f18], 0
mov dword [edi + 0x3f9c], 0
mov dword [edi + 0x3f88], 0
mov dword [edi + 0x3f24], 0
mov ecx, dword [edi + 0x408c]
test ecx, ecx
je 0x1000eefd
mov eax, dword [0x101423a0]
mov dword [edi + 0x4088], 0
mov dword [edi + 0x4084], 0
test eax, eax
je 0x1000eeed
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x408c], 0
mov ecx, dword [edi + 0x4098]
test ecx, ecx
je 0x1000ef3a
mov eax, dword [0x101423a0]
mov dword [edi + 0x4094], 0
mov dword [edi + 0x4090], 0
test eax, eax
je 0x1000ef2a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4098], 0
mov ecx, dword [edi + 0x40a4]
test ecx, ecx
je 0x1000ef77
mov eax, dword [0x101423a0]
mov dword [edi + 0x40a0], 0
mov dword [edi + 0x409c], 0
test eax, eax
je 0x1000ef67
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40a4], 0
mov ecx, dword [edi + 0x40d4]
test ecx, ecx
je 0x1000efb4
mov eax, dword [0x101423a0]
mov dword [edi + 0x40d0], 0
mov dword [edi + 0x40cc], 0
test eax, eax
je 0x1000efa4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40d4], 0
mov ecx, dword [edi + 0x40e0]
test ecx, ecx
je 0x1000eff1
mov eax, dword [0x101423a0]
mov dword [edi + 0x40dc], 0
mov dword [edi + 0x40d8], 0
test eax, eax
je 0x1000efe1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40e0], 0
xor ecx, ecx
mov dword [edi + 0x4100], 0
mov dword [edi + 0x40fc], 0
mov dword [edi + 0x40f8], 0
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x40e8], ecx
jle 0x1000f0cc
mov eax, dword [edi + 0x40f0]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x1000f0bc
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000f059
mov ecx, eax
call fcn.10006de0
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000f051
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000f081
mov ecx, eax
call fcn.10006de0
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000f079
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
push 0x10029280
push 2
push 0xc
lea eax, [esi + 0xb0]
mov dword [ebp - 4], 0
push eax
call fcn.100ad0c8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000f0b3
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 + 0x40e8]
jl 0x1000f020
mov ecx, dword [edi + 0x40f0]
test ecx, ecx
je 0x1000f109
mov eax, dword [0x101423a0]
mov dword [edi + 0x40ec], 0
mov dword [edi + 0x40e8], 0
test eax, eax
je 0x1000f0f9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40f0], 0
lea ecx, [edi + 0x4390]
call fcn.100294a0
mov ecx, dword [edi + 0x43b8]
test ecx, ecx
je 0x1000f151
mov eax, dword [0x101423a0]
mov dword [edi + 0x43b4], 0
mov dword [edi + 0x43b0], 0
test eax, eax
je 0x1000f141
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43b8], 0
mov ecx, dword [edi + 0x43c4]
test ecx, ecx
je 0x1000f18e
mov eax, dword [0x101423a0]
mov dword [edi + 0x43c0], 0
mov dword [edi + 0x43bc], 0
test eax, eax
je 0x1000f17e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43c4], 0
xor esi, esi
cmp dword [edi + 0x4334], esi
jle 0x1000f1d5
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov eax, dword [edi + 0x433c]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x1000f1c6
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000f1bd
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc esi
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x4334]
jl 0x1000f1a0
mov ecx, dword [edi + 0x433c]
test ecx, ecx
je 0x1000f212
mov eax, dword [0x101423a0]
mov dword [edi + 0x4338], 0
mov dword [edi + 0x4334], 0
test eax, eax
je 0x1000f202
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x433c], 0
lea ecx, [edi + 0x4354]
call fcn.10029590
cmp dword [edi + 0x4348], 0
mov dword [ebp - 0x10], 0
jle 0x1000f276
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [edi + 0x4350]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.10034fd0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000f25e
mov eax, dword [0x101423a0]
test eax, eax
je 0x1000f258
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
add ecx, 0x68
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, dword [edi + 0x4348]
jl 0x1000f232
mov ecx, dword [edi + 0x4350]
test ecx, ecx
je 0x1000f2b3
mov eax, dword [0x101423a0]
mov dword [edi + 0x434c], 0
mov dword [edi + 0x4348], 0
test eax, eax
je 0x1000f2a3
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4350], 0
mov ecx, dword [edi + 0x4388]
test ecx, ecx
je 0x1000f2f0
mov eax, dword [0x101423a0]
mov dword [edi + 0x4384], 0
mov dword [edi + 0x4380], 0
test eax, eax
je 0x1000f2e0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4388], 0
mov ecx, dword [edi + 0x5318]
test ecx, ecx
je 0x1000f32d
mov eax, dword [0x101423a0]
mov dword [edi + 0x5314], 0
mov dword [edi + 0x5310], 0
test eax, eax
je 0x1000f31d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5318], 0
mov ecx, dword [edi + 0x5324]
test ecx, ecx
je 0x1000f36a
mov eax, dword [0x101423a0]
mov dword [edi + 0x5320], 0
mov dword [edi + 0x531c], 0
test eax, eax
je 0x1000f35a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5324], 0
mov ecx, dword [edi + 0x43e4]
test ecx, ecx
je 0x1000f3a7
mov eax, dword [0x101423a0]
mov dword [edi + 0x43e0], 0
mov dword [edi + 0x43dc], 0
test eax, eax
je 0x1000f397
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43e4], 0
mov ecx, dword [edi + 0x43f0]
test ecx, ecx
je 0x1000f3e4
mov eax, dword [0x101423a0]
mov dword [edi + 0x43ec], 0
mov dword [edi + 0x43e8], 0
test eax, eax
je 0x1000f3d4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43f0], 0
mov ecx, dword [edi + 0x43fc]
test ecx, ecx
je 0x1000f421
mov eax, dword [0x101423a0]
mov dword [edi + 0x43f8], 0
mov dword [edi + 0x43f4], 0
test eax, eax
je 0x1000f411
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43fc], 0
mov ecx, dword [edi + 0x53a0]
test ecx, ecx
je 0x1000f45e
mov eax, dword [0x101423a0]
mov dword [edi + 0x539c], 0
mov dword [edi + 0x5398], 0
test eax, eax
je 0x1000f44e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x53a0], 0
mov ecx, dword [edi + 0x5394]
test ecx, ecx
je 0x1000f49b
mov eax, dword [0x101423a0]
mov dword [edi + 0x5390], 0
mov dword [edi + 0x538c], 0
test eax, eax
je 0x1000f48b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5394], 0
cmp dword [edi + 0x53c8], 0
je 0x1000f4cd
mov esi, dword [edi + 0x53c8]
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 0x1000f4c3
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x53c8], 0
mov ecx, dword [edi + 0x53d4]
test ecx, ecx
je 0x1000f50a
mov eax, dword [0x101423a0]
mov dword [edi + 0x53d0], 0
mov dword [edi + 0x53cc], 0
test eax, eax
je 0x1000f4fa
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x53d4], 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