Function at 0x1000bde0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100cbe88]
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
push edi
mov edi, eax
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x1000be8b
cmp byte [edi + 1], 0
je 0x1000be8b
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x1000be8b
mov ecx, esi
call fcn.100317b0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x1000be39
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000be33
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1000be55
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000be4f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x1000be71
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000be6b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000be80
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x100cbe88]
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x40], 0
je 0x1000c6ed
cmp byte [edi + 0x5378], 0
je 0x1000bef2
mov esi, dword [edi + 0x20]
test esi, esi
je 0x1000bef2
lea ecx, [ebp - 4]
mov dword [eax + 0x537c], 0
mov dword [ebp - 4], 0
call fcn.1001b300
mov edx, 0x1004ed50
mov dword [ebp - 8], eax
mov ecx, esi
call fcn.10006780
mov esi, eax
test esi, esi
je 0x1000bef2
push esi
push dword [ebp - 4]
push 1
push dword [ebp - 8]
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.1001d6e0
xor esi, esi
cmp dword [edi + 0x5350], esi
jle 0x1000bf39
mov eax, dword [edi + 0x5358]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000bf30
mov ecx, eax
call fcn.1001ede0
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000bf28
dec dword [eax + 0xb0]
push dword [ebp - 8]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x5350]
jl 0x1000bf01
xor esi, esi
cmp dword [edi + 0x53b0], esi
jle 0x1000bf7a
xor ecx, ecx
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x53b8]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x1000bf6b
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [ebp - 4]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 0x53b0]
jl 0x1000bf50
xor esi, esi
cmp dword [edi + 0x3ecc], esi
jle 0x1000bfbb
mov eax, dword [edi + 0x3ed4]
mov eax, dword [eax + esi*4]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000bfb2
mov ecx, eax
call fcn.10008c00
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000bfaa
dec dword [eax + 0xb0]
push dword [ebp - 8]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x3ecc]
jl 0x1000bf84
mov ecx, dword [edi + 0x3ed4]
test ecx, ecx
je 0x1000bff8
mov eax, dword [0x100cbe88]
mov dword [edi + 0x3ed0], 0
mov dword [edi + 0x3ecc], 0
test eax, eax
je 0x1000bfe8
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ed4], 0
mov ecx, dword [edi + 0x3ee0]
test ecx, ecx
je 0x1000c035
mov eax, dword [0x100cbe88]
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3ed8], 0
test eax, eax
je 0x1000c025
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 0x1000c072
mov eax, dword [0x100cbe88]
mov dword [edi + 0x3ee8], 0
mov dword [edi + 0x3ee4], 0
test eax, eax
je 0x1000c062
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 0x1000c0b9
mov eax, dword [0x100cbe88]
mov dword [edi + 0x3ef4], 0
mov dword [edi + 0x3ef0], 0
test eax, eax
je 0x1000c0a9
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 0x1000c0f6
mov eax, dword [0x100cbe88]
mov dword [edi + 0x3f00], 0
mov dword [edi + 0x3efc], 0
test eax, eax
je 0x1000c0e6
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 0x1000c16f
mov eax, dword [0x100cbe88]
mov dword [edi + 0x4088], 0
mov dword [edi + 0x4084], 0
test eax, eax
je 0x1000c15f
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 0x1000c1ac
mov eax, dword [0x100cbe88]
mov dword [edi + 0x4094], 0
mov dword [edi + 0x4090], 0
test eax, eax
je 0x1000c19c
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 0x1000c1e9
mov eax, dword [0x100cbe88]
mov dword [edi + 0x40a0], 0
mov dword [edi + 0x409c], 0
test eax, eax
je 0x1000c1d9
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 0x1000c226
mov eax, dword [0x100cbe88]
mov dword [edi + 0x40d0], 0
mov dword [edi + 0x40cc], 0
test eax, eax
je 0x1000c216
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 0x1000c263
mov eax, dword [0x100cbe88]
mov dword [edi + 0x40dc], 0
mov dword [edi + 0x40d8], 0
test eax, eax
je 0x1000c253
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40e0], 0
xor esi, esi
mov dword [edi + 0x4100], 0
mov dword [edi + 0x40fc], 0
mov dword [edi + 0x40f8], 0
cmp dword [edi + 0x40e8], esi
jle 0x1000c2a7
nop dword [eax + eax]
mov ecx, dword [edi + 0x40f0]
mov ecx, dword [ecx + esi*4]
call fcn.100269b0
inc esi
cmp esi, dword [edi + 0x40e8]
jl 0x1000c290
mov ecx, dword [edi + 0x40f0]
test ecx, ecx
je 0x1000c2e4
mov eax, dword [0x100cbe88]
mov dword [edi + 0x40ec], 0
mov dword [edi + 0x40e8], 0
test eax, eax
je 0x1000c2d4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40f0], 0
lea ecx, [edi + 0x4390]
call fcn.10025ef0
mov ecx, dword [edi + 0x43b8]
test ecx, ecx
je 0x1000c32c
mov eax, dword [0x100cbe88]
mov dword [edi + 0x43b4], 0
mov dword [edi + 0x43b0], 0
test eax, eax
je 0x1000c31c
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 0x1000c369
mov eax, dword [0x100cbe88]
mov dword [edi + 0x43c0], 0
mov dword [edi + 0x43bc], 0
test eax, eax
je 0x1000c359
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 0x1000c3b5
xor ecx, ecx
mov dword [ebp - 4], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x433c]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x1000c3a6
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000c39d
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
inc esi
add ecx, 0x1c
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 0x4334]
jl 0x1000c380
mov ecx, dword [edi + 0x433c]
test ecx, ecx
je 0x1000c3f2
mov eax, dword [0x100cbe88]
mov dword [edi + 0x4338], 0
mov dword [edi + 0x4334], 0
test eax, eax
je 0x1000c3e2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x433c], 0
lea ecx, [edi + 0x4354]
call fcn.10025fe0
cmp dword [edi + 0x4348], 0
mov dword [ebp - 4], 0
jle 0x1000c456
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [edi + 0x4350]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.10030ff0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000c43e
mov eax, dword [0x100cbe88]
test eax, eax
je 0x1000c438
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
add ecx, 0x68
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, dword [edi + 0x4348]
jl 0x1000c412
mov ecx, dword [edi + 0x4350]
test ecx, ecx
je 0x1000c493
mov eax, dword [0x100cbe88]
mov dword [edi + 0x434c], 0
mov dword [edi + 0x4348], 0
test eax, eax
je 0x1000c483
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 0x1000c4d0
mov eax, dword [0x100cbe88]
mov dword [edi + 0x4384], 0
mov dword [edi + 0x4380], 0
test eax, eax
je 0x1000c4c0
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 0x1000c50d
mov eax, dword [0x100cbe88]
mov dword [edi + 0x5314], 0
mov dword [edi + 0x5310], 0
test eax, eax
je 0x1000c4fd
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 0x1000c54a
mov eax, dword [0x100cbe88]
mov dword [edi + 0x5320], 0
mov dword [edi + 0x531c], 0
test eax, eax
je 0x1000c53a
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 0x1000c587
mov eax, dword [0x100cbe88]
mov dword [edi + 0x43e0], 0
mov dword [edi + 0x43dc], 0
test eax, eax
je 0x1000c577
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 0x1000c5c4
mov eax, dword [0x100cbe88]
mov dword [edi + 0x43ec], 0
mov dword [edi + 0x43e8], 0
test eax, eax
je 0x1000c5b4
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 0x1000c601
mov eax, dword [0x100cbe88]
mov dword [edi + 0x43f8], 0
mov dword [edi + 0x43f4], 0
test eax, eax
je 0x1000c5f1
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 0x1000c63e
mov eax, dword [0x100cbe88]
mov dword [edi + 0x539c], 0
mov dword [edi + 0x5398], 0
test eax, eax
je 0x1000c62e
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 0x1000c67b
mov eax, dword [0x100cbe88]
mov dword [edi + 0x5390], 0
mov dword [edi + 0x538c], 0
test eax, eax
je 0x1000c66b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5394], 0
cmp dword [edi + 0x53c8], 0
je 0x1000c6ad
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 0x1000c6a3
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 0x1000c6ea
mov eax, dword [0x100cbe88]
mov dword [edi + 0x53d0], 0
mov dword [edi + 0x53cc], 0
test eax, eax
je 0x1000c6da
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x53d4], 0
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret