Function at 0x10008f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
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, dword [0x1004a4dc]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x10008f79
cmp byte [edi + 1], 0
je 0x10008f79
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x10008f79
mov ecx, esi
call fcn.10028a80
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x10008f73
dec dword [eax + 0xb0]
push esi
call ebx
add esp, 4
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 0x3c08]
test ecx, ecx
je 0x10008fbd
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3c04], 0
mov dword [edi + 0x3c00], 0
test eax, eax
je 0x10008fad
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3c08], 0
cmp byte [edi], 0
je 0x10009988
cmp byte [edi + 0x5a78], 0
je 0x10009022
mov esi, dword [edi + 0x20]
test esi, esi
je 0x10009022
mov eax, dword [0x1004a4dc]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [eax + 0x5a7c], 0
call fcn.1001bd30
mov edx, 0x10046c58
mov dword [ebp - 8], eax
mov ecx, esi
call fcn.10006810
mov esi, eax
test esi, esi
je 0x10009022
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
mov eax, dword [edi + 0x5ab0]
mov esi, dword [edi + 0x5ab8]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 8], eax
cmp esi, eax
je 0x1000905a
nop dword [eax + eax]
cmp dword [esi + 4], 6
jne 0x10009053
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
mov eax, dword [ebp - 8]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x10009040
xor esi, esi
lea ecx, [edi + 0x3e20]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x3e18], esi
jle 0x100090ab
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 8], eax
test eax, eax
je 0x100090a0
mov ecx, eax
call fcn.1000a060
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x10009092
dec dword [eax + 0xb0]
push dword [ebp - 8]
call ebx
add esp, 4
lea ecx, [edi + 0x3e20]
inc esi
cmp esi, dword [edi + 0x3e18]
jl 0x10009070
jmp 0x100090ae
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x100090e6
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3e1c], 0
mov dword [edi + 0x3e18], 0
test eax, eax
je 0x100090d7
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 4]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3e2c]
test ecx, ecx
je 0x10009123
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3e28], 0
mov dword [edi + 0x3e24], 0
test eax, eax
je 0x10009113
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e2c], 0
mov ecx, dword [edi + 0x3e38]
test ecx, ecx
je 0x10009160
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x10009150
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e38], 0
mov dword [edi + 0x3e60], 0
mov ecx, dword [edi + 0x3e44]
test ecx, ecx
je 0x100091a7
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3e40], 0
mov dword [edi + 0x3e3c], 0
test eax, eax
je 0x10009197
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e44], 0
mov ecx, dword [edi + 0x3e50]
test ecx, ecx
je 0x100091e4
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3e48], 0
test eax, eax
je 0x100091d4
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e50], 0
lea ecx, [edi + 0x4578]
mov dword [edi + 0x47f0], 0
mov dword [edi + 0x3e68], 0
mov dword [edi + 0x3e64], 0
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3ec8], 0
mov dword [edi + 0x3e6c], 0
call fcn.100045f0
mov ecx, dword [edi + 0x477c]
test ecx, ecx
je 0x10009268
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4778], 0
mov dword [edi + 0x4774], 0
test eax, eax
je 0x10009258
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x477c], 0
mov ecx, dword [edi + 0x4788]
test ecx, ecx
je 0x100092a5
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4784], 0
mov dword [edi + 0x4780], 0
test eax, eax
je 0x10009295
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 0x100092e2
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x100092d2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4794], 0
mov ecx, dword [edi + 0x47c4]
test ecx, ecx
je 0x1000931f
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x47c0], 0
mov dword [edi + 0x47bc], 0
test eax, eax
je 0x1000930f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47c4], 0
mov ecx, dword [edi + 0x47d0]
test ecx, ecx
je 0x1000935c
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x47cc], 0
mov dword [edi + 0x47c8], 0
test eax, eax
je 0x1000934c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47d0], 0
mov ecx, dword [edi + 0x47dc]
test ecx, ecx
je 0x10009399
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x47d8], 0
mov dword [edi + 0x47d4], 0
test eax, eax
je 0x10009389
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47dc], 0
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi + 0x47e4], ecx
jle 0x10009474
nop word [eax + eax]
mov eax, dword [edi + 0x47ec]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x10009464
mov eax, dword [esi + 0x30]
mov dword [ebp - 8], eax
test eax, eax
je 0x100093e9
mov ecx, eax
call fcn.100043c0
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x100093e1
dec dword [eax + 0xb0]
push dword [ebp - 8]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], eax
test eax, eax
je 0x10009411
mov ecx, eax
call fcn.100043c0
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x10009409
dec dword [eax + 0xb0]
push dword [ebp - 8]
call ebx
add esp, 4
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x10009430
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x1000942a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1000944c
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x10009446
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x1000945b
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [edi + 0x47e4]
jl 0x100093b0
mov ecx, dword [edi + 0x47ec]
test ecx, ecx
je 0x100094b1
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x47e8], 0
mov dword [edi + 0x47e4], 0
test eax, eax
je 0x100094a1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x47ec], 0
lea ecx, [edi + 0x4a78]
call fcn.1001cf90
mov ecx, dword [edi + 0x4aa0]
test ecx, ecx
je 0x100094f9
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4a9c], 0
mov dword [edi + 0x4a98], 0
test eax, eax
je 0x100094e9
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aa0], 0
mov ecx, dword [edi + 0x4aac]
test ecx, ecx
je 0x10009536
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4aa8], 0
mov dword [edi + 0x4aa4], 0
test eax, eax
je 0x10009526
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4aac], 0
xor esi, esi
cmp dword [edi + 0x4a1c], esi
jle 0x10009585
xor ecx, ecx
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov eax, dword [edi + 0x4a24]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x10009576
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x1000956d
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 + 0x4a1c]
jl 0x10009550
mov ecx, dword [edi + 0x4a24]
test ecx, ecx
je 0x100095c2
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4a20], 0
mov dword [edi + 0x4a1c], 0
test eax, eax
je 0x100095b2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a24], 0
lea ecx, [edi + 0x4a3c]
call fcn.1001d080
cmp dword [edi + 0x4a30], 0
mov dword [ebp - 4], 0
jle 0x10009626
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [edi + 0x4a38]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.100283b0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000960e
mov eax, dword [0x1004a4dc]
test eax, eax
je 0x10009608
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 + 0x4a30]
jl 0x100095e2
mov ecx, dword [edi + 0x4a38]
test ecx, ecx
je 0x10009663
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4a34], 0
mov dword [edi + 0x4a30], 0
test eax, eax
je 0x10009653
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a38], 0
mov ecx, dword [edi + 0x4a70]
test ecx, ecx
je 0x100096a0
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x10009690
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a70], 0
mov ecx, dword [edi + 0x5a48]
test ecx, ecx
je 0x100096dd
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5a44], 0
mov dword [edi + 0x5a40], 0
test eax, eax
je 0x100096cd
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a48], 0
mov ecx, dword [edi + 0x5a54]
test ecx, ecx
je 0x1000971a
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5a50], 0
mov dword [edi + 0x5a4c], 0
test eax, eax
je 0x1000970a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a54], 0
mov ecx, dword [edi + 0x4af0]
test ecx, ecx
je 0x10009757
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4aec], 0
mov dword [edi + 0x4ae8], 0
test eax, eax
je 0x10009747
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4af0], 0
mov ecx, dword [edi + 0x4afc]
test ecx, ecx
je 0x10009794
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4af8], 0
mov dword [edi + 0x4af4], 0
test eax, eax
je 0x10009784
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4afc], 0
mov ecx, dword [edi + 0x4b08]
test ecx, ecx
je 0x100097d1
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x4b04], 0
mov dword [edi + 0x4b00], 0
test eax, eax
je 0x100097c1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4b08], 0
mov dword [edi + 0x5950], 0
mov ecx, dword [edi + 0x595c]
test ecx, ecx
je 0x10009818
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5958], 0
mov dword [edi + 0x5954], 0
test eax, eax
je 0x10009808
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x595c], 0
mov ecx, dword [edi + 0x5aa0]
test ecx, ecx
je 0x10009855
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5a9c], 0
mov dword [edi + 0x5a98], 0
test eax, eax
je 0x10009845
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5aa0], 0
mov ecx, dword [edi + 0x5a94]
test ecx, ecx
je 0x10009892
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5a90], 0
mov dword [edi + 0x5a8c], 0
test eax, eax
je 0x10009882
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a94], 0
cmp dword [edi + 0x5ae8], 0
je 0x100098c4
mov esi, dword [edi + 0x5ae8]
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 0x100098ba
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5ae8], 0
mov ecx, dword [edi + 0x5af4]
test ecx, ecx
je 0x10009901
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5af0], 0
mov dword [edi + 0x5aec], 0
test eax, eax
je 0x100098f1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5af4], 0
mov ecx, dword [edi + 0x5b20]
test ecx, ecx
je 0x1000993e
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5b1c], 0
mov dword [edi + 0x5b18], 0
test eax, eax
je 0x1000992e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5b20], 0
mov ecx, dword [edi + 0x5b2c]
test ecx, ecx
je 0x1000997b
mov eax, dword [0x1004a4dc]
mov dword [edi + 0x5b28], 0
mov dword [edi + 0x5b24], 0
test eax, eax
je 0x1000996b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5b2c], 0
mov dword [edi + 0x5b30], 0
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret