Function at 0x1003cbc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
je 0x1003cc09
cmp byte [edi + 1], 0
je 0x1003cc09
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x1003cc09
mov ecx, esi
call fcn.100509e0
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003cc03
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x1003d407
cmp byte [edi + 0x2f1d], 0
je 0x1003cc8a
mov esi, dword [edi + 0x20]
test esi, esi
je 0x1003cc8a
mov ebp, dword [0x10132b9c]
lea ecx, [esp + 0x14]
mov dword [0x10132b9c], edi
mov dword [edi + 0x2f20], 0
mov dword [esp + 0x14], 0
call fcn.1004ac10
mov edx, 0x1011ba44
mov dword [esp + 0x18], eax
mov ecx, esi
call fcn.100378d0
mov esi, eax
test esi, esi
je 0x1003cc84
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x24]
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 dword [0x10132b9c], ebp
xor esi, esi
cmp dword [edi + 0x2f54], esi
jle 0x1003ccc4
xor ebp, ebp
nop word [eax + eax]
mov eax, dword [edi + 0x2f5c]
add eax, ebp
cmp dword [eax + 4], 6
jne 0x1003ccb8
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
add esp, 8
inc esi
add ebp, 0x14
cmp esi, dword [edi + 0x2f54]
jl 0x1003cca0
xor esi, esi
lea ecx, [edi + 0x1b6c]
mov dword [esp + 0x14], ecx
cmp dword [edi + 0x1b64], esi
jle 0x1003cd0e
mov eax, dword [ecx]
mov ebp, dword [eax + esi*4]
test ebp, ebp
je 0x1003cd03
mov ecx, ebp
call fcn.1003a010
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003ccf7
dec dword [eax + 0x370]
push ebp
call ebx
add esp, 4
lea ecx, [edi + 0x1b6c]
inc esi
cmp esi, dword [edi + 0x1b64]
jl 0x1003ccd8
jmp 0x1003cd12
mov dword [esp + 0x14], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1003cd4b
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1b68], 0
mov dword [edi + 0x1b64], 0
test eax, eax
je 0x1003cd3b
dec dword [eax + 0x370]
push ecx
call ebx
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x1b78]
test ecx, ecx
je 0x1003cd88
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b70], 0
test eax, eax
je 0x1003cd78
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b78], 0
mov ecx, dword [edi + 0x1b84]
test ecx, ecx
je 0x1003cdc5
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1b7c], 0
test eax, eax
je 0x1003cdb5
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b84], 0
mov dword [edi + 0x1bac], 0
mov ecx, dword [edi + 0x1b90]
test ecx, ecx
je 0x1003ce0c
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1b88], 0
test eax, eax
je 0x1003cdfc
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b90], 0
mov ecx, dword [edi + 0x1b9c]
test ecx, ecx
je 0x1003ce49
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1b94], 0
test eax, eax
je 0x1003ce39
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b9c], 0
mov dword [edi + 0x1d44], 0
mov dword [edi + 0x1bb4], 0
mov dword [edi + 0x1bb0], 0
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c10], 0
mov dword [edi + 0x1bb8], 0
mov ecx, dword [edi + 0x1ce0]
test ecx, ecx
je 0x1003cec2
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1cdc], 0
mov dword [edi + 0x1cd8], 0
test eax, eax
je 0x1003ceb2
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1ce0], 0
mov ecx, dword [edi + 0x1cec]
test ecx, ecx
je 0x1003ceff
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x1003ceef
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x1003cf3c
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x1003cf2c
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d28]
test ecx, ecx
je 0x1003cf79
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1d24], 0
mov dword [edi + 0x1d20], 0
test eax, eax
je 0x1003cf69
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d28], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x1003cfb6
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x1003cfa6
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d34], 0
xor ebp, ebp
cmp dword [edi + 0x1d38], ebp
jle 0x1003d04f
mov eax, dword [edi + 0x1d40]
mov esi, dword [eax + ebp*4]
test esi, esi
je 0x1003d042
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1003cffb
mov ecx, eax
call fcn.10035eb0
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003cff2
dec dword [eax + 0x370]
push dword [esp + 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1003d025
mov ecx, eax
call fcn.10035eb0
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003d01c
dec dword [eax + 0x370]
push dword [esp + 0x18]
call ebx
add esp, 4
lea ecx, [esi + 0x60]
call fcn.10035ff0
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003d03c
dec dword [eax + 0x370]
push esi
call ebx
add esp, 4
inc ebp
cmp ebp, dword [edi + 0x1d38]
jl 0x1003cfc4
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x1003d08c
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x1003d07c
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d40], 0
lea ecx, [edi + 0x1f68]
call fcn.1004b4b0
mov ecx, dword [edi + 0x1f90]
test ecx, ecx
je 0x1003d0d4
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1f8c], 0
mov dword [edi + 0x1f88], 0
test eax, eax
je 0x1003d0c4
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f90], 0
mov ecx, dword [edi + 0x1f9c]
test ecx, ecx
je 0x1003d111
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1f98], 0
mov dword [edi + 0x1f94], 0
test eax, eax
je 0x1003d101
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f9c], 0
lea ecx, [edi + 0x1f20]
call fcn.1004b590
xor ebp, ebp
cmp dword [edi + 0x1f40], ebp
jle 0x1003d170
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x1f48]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.10050170
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1003d15c
mov eax, dword [0x10132b9c]
test eax, eax
je 0x1003d156
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov ecx, dword [esp + 0x14]
inc ebp
add ecx, 0x68
mov dword [esp + 0x14], ecx
cmp ebp, dword [edi + 0x1f40]
jl 0x1003d130
mov ecx, dword [edi + 0x1f48]
test ecx, ecx
je 0x1003d1ad
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1f44], 0
mov dword [edi + 0x1f40], 0
test eax, eax
je 0x1003d19d
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f48], 0
mov ecx, dword [edi + 0x1f60]
test ecx, ecx
je 0x1003d1ea
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1f5c], 0
mov dword [edi + 0x1f58], 0
test eax, eax
je 0x1003d1da
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f60], 0
mov ecx, dword [edi + 0x2efc]
test ecx, ecx
je 0x1003d227
mov eax, dword [0x10132b9c]
mov dword [edi + 0x2ef8], 0
mov dword [edi + 0x2ef4], 0
test eax, eax
je 0x1003d217
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2efc], 0
mov ecx, dword [edi + 0x2f08]
test ecx, ecx
je 0x1003d264
mov eax, dword [0x10132b9c]
mov dword [edi + 0x2f04], 0
mov dword [edi + 0x2f00], 0
test eax, eax
je 0x1003d254
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f08], 0
mov ecx, dword [edi + 0x1fbc]
test ecx, ecx
je 0x1003d2a1
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1fb8], 0
mov dword [edi + 0x1fb4], 0
test eax, eax
je 0x1003d291
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fbc], 0
mov ecx, dword [edi + 0x1fc8]
test ecx, ecx
je 0x1003d2de
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1fc4], 0
mov dword [edi + 0x1fc0], 0
test eax, eax
je 0x1003d2ce
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fc8], 0
mov ecx, dword [edi + 0x1fd4]
test ecx, ecx
je 0x1003d31b
mov eax, dword [0x10132b9c]
mov dword [edi + 0x1fd0], 0
mov dword [edi + 0x1fcc], 0
test eax, eax
je 0x1003d30b
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fd4], 0
mov ecx, dword [edi + 0x2f44]
test ecx, ecx
je 0x1003d358
mov eax, dword [0x10132b9c]
mov dword [edi + 0x2f40], 0
mov dword [edi + 0x2f3c], 0
test eax, eax
je 0x1003d348
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f44], 0
mov ecx, dword [edi + 0x2f38]
test ecx, ecx
je 0x1003d395
mov eax, dword [0x10132b9c]
mov dword [edi + 0x2f34], 0
mov dword [edi + 0x2f30], 0
test eax, eax
je 0x1003d385
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f38], 0
cmp dword [edi + 0x2f6c], 0
je 0x1003d3c7
mov esi, dword [edi + 0x2f6c]
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 0x1003d3bd
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2f6c], 0
mov ecx, dword [edi + 0x2f78]
test ecx, ecx
je 0x1003d404
mov eax, dword [0x10132b9c]
mov dword [edi + 0x2f74], 0
mov dword [edi + 0x2f70], 0
test eax, eax
je 0x1003d3f4
dec dword [eax + 0x370]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f78], 0
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret