Function at 0x10026cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x1003ab30
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ebx, dword [0x100ef758]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x10026d61
cmp byte [ebx + 1], 0
je 0x10026d61
mov byte [eax + 0x10], 0
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x10026d61
mov ecx, esi
call fcn.1003fe30
mov eax, dword [0x100ef758]
test eax, eax
je 0x10026d51
dec dword [eax + 0xa8]
push dword [0x100ef760]
push esi
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x40], 0
cmp byte [ebx], 0
je 0x100278dc
cmp byte [ebx + 0x51f1], 0
je 0x10026dd3
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x10026dd3
mov eax, dword [0x100ef758]
mov dword [eax + 0x51f4], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10038b20
add esp, 4
mov esi, eax
push 0x100e1656
push edi
call fcn.10021ef0
add esp, 8
test eax, eax
je 0x10026dd3
mov edi, eax
push eax
push dword [ebp - 0x2c]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebx + 0x5228]
test eax, eax
jle 0x10026e21
xor esi, esi
xor edi, edi
jmp 0x10026df8
inc edi
add esi, 0x14
cmp edi, eax
jge 0x10026e21
mov ecx, dword [ebx + 0x5230]
cmp dword [ecx + esi + 4], 6
jne 0x10026df0
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
mov dword [ebp - 0x10], 0xffffffff
push ecx
push ebx
call eax
add esp, 8
mov eax, dword [ebx + 0x5228]
jmp 0x10026df0
mov eax, dword [ebx + 0x3dc8]
test eax, eax
jle 0x10026e7e
xor edi, edi
jmp 0x10026e52
mov eax, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push eax
push esi
call dword [0x100e7c14]
add esp, 8
mov eax, dword [ebx + 0x3dc8]
inc edi
cmp edi, eax
jge 0x10026e7e
mov ecx, dword [ebx + 0x3dd0]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x10026e4d
mov ecx, esi
call fcn.10024a30
mov eax, dword [0x100ef758]
test eax, eax
je 0x10026e30
dec dword [eax + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x10026e30
mov eax, dword [ebx + 0x3dd0]
test eax, eax
je 0x10026ed5
mov dword [ebx + 0x3dcc], 0
mov dword [ebx + 0x3dc8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10026eb3
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3dd0], 0
mov eax, dword [ebx + 0x3ddc]
test eax, eax
je 0x10026f2c
mov dword [ebx + 0x3dd8], 0
mov dword [ebx + 0x3dd4], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10026f0a
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3ddc], 0
mov eax, dword [ebx + 0x3de8]
test eax, eax
je 0x10026f83
mov dword [ebx + 0x3de4], 0
mov dword [ebx + 0x3de0], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10026f61
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3de8], 0
mov dword [ebx + 0x3e10], 0
mov eax, dword [ebx + 0x3df4]
test eax, eax
je 0x10026fe4
mov dword [ebx + 0x3df0], 0
mov dword [ebx + 0x3dec], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10026fc2
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3df4], 0
mov eax, dword [ebx + 0x3e00]
test eax, eax
je 0x1002703b
mov dword [ebx + 0x3dfc], 0
mov dword [ebx + 0x3df8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027019
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3e00], 0
mov dword [ebx + 0x3fc4], 0
mov dword [ebx + 0x3e18], 0
mov dword [ebx + 0x3e14], 0
mov dword [ebx + 0x3e78], 0
mov dword [ebx + 0x3e64], 0
mov dword [ebx + 0x3e1c], 0
mov eax, dword [ebx + 0x3f5c]
test eax, eax
je 0x100270ce
mov dword [ebx + 0x3f58], 0
mov dword [ebx + 0x3f54], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100270ac
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3f5c], 0
mov eax, dword [ebx + 0x3f68]
test eax, eax
je 0x10027125
mov dword [ebx + 0x3f64], 0
mov dword [ebx + 0x3f60], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027103
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3f68], 0
mov eax, dword [ebx + 0x3f74]
test eax, eax
je 0x1002717c
mov dword [ebx + 0x3f70], 0
mov dword [ebx + 0x3f6c], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x1002715a
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3f74], 0
mov eax, dword [ebx + 0x3fa4]
test eax, eax
je 0x100271d3
mov dword [ebx + 0x3fa0], 0
mov dword [ebx + 0x3f9c], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100271b1
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3fa4], 0
mov eax, dword [ebx + 0x3fb0]
test eax, eax
je 0x1002722a
mov dword [ebx + 0x3fac], 0
mov dword [ebx + 0x3fa8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027208
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3fb0], 0
mov eax, dword [ebx + 0x3fb8]
test eax, eax
jle 0x1002728e
xor edi, edi
jmp 0x10027262
mov eax, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push eax
push esi
call dword [0x100e7c14]
add esp, 8
mov eax, dword [ebx + 0x3fb8]
inc edi
cmp edi, eax
jge 0x1002728e
mov ecx, dword [ebx + 0x3fc0]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x1002725d
mov ecx, esi
call fcn.1003a850
mov eax, dword [0x100ef758]
test eax, eax
je 0x10027240
dec dword [eax + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x10027240
mov eax, dword [ebx + 0x3fc0]
test eax, eax
je 0x100272e5
mov dword [ebx + 0x3fbc], 0
mov dword [ebx + 0x3fb8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100272c3
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x3fc0], 0
lea ecx, [ebx + 0x4234]
mov dword [ebp - 0x10], 0xffffffff
call fcn.10032910
mov eax, dword [ebx + 0x425c]
test eax, eax
je 0x1002733f
mov dword [ebx + 0x4258], 0
mov dword [ebx + 0x4254], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027325
dec dword [ecx + 0xa8]
push dword [0x100ef760]
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x425c], 0
mov eax, dword [ebx + 0x4268]
test eax, eax
je 0x10027387
mov dword [ebx + 0x4264], 0
mov dword [ebx + 0x4260], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x1002736d
dec dword [ecx + 0xa8]
push dword [0x100ef760]
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x4268], 0
mov eax, dword [ebx + 0x41d8]
test eax, eax
mov dword [ebp - 0x28], ebx
jle 0x100273f9
xor edx, edx
mov esi, 0x18
jmp 0x100273ce
mov eax, dword [0x100ef760]
mov dword [ebp - 0x10], 0
push eax
push ecx
call dword [0x100e7c14]
add esp, 8
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x41d8]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc edx
add esi, 0x1c
cmp edx, eax
jge 0x100273f9
mov ecx, dword [ebx + 0x41e0]
mov ecx, dword [ecx + esi]
test ecx, ecx
je 0x100273c6
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edx
mov eax, dword [0x100ef758]
test eax, eax
je 0x100273a0
dec dword [eax + 0xa8]
mov dword [ebp - 0x10], 0
jmp 0x100273a0
mov eax, dword [ebx + 0x41e0]
test eax, eax
je 0x10027450
mov dword [ebx + 0x41dc], 0
mov dword [ebx + 0x41d8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x1002742e
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x41e0], 0
lea ecx, [ebx + 0x41f8]
mov dword [ebp - 0x10], 0xffffffff
call fcn.10032ae0
cmp dword [ebx + 0x41ec], 0
jle 0x100274ea
xor eax, eax
mov ecx, 0x10
jmp 0x100274ad
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 1
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
inc eax
add ecx, 0x68
mov ebx, dword [ebp - 0x28]
cmp eax, dword [ebx + 0x41ec]
jge 0x100274ea
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x41f4]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
add ecx, eax
mov dword [ebp - 0x10], 2
call fcn.1003b5e0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ecx + 0x10]
test eax, eax
je 0x1002749b
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027480
dec dword [ecx + 0xa8]
jmp 0x10027480
mov eax, dword [ebx + 0x41f4]
test eax, eax
je 0x10027541
mov dword [ebx + 0x41f0], 0
mov dword [ebx + 0x41ec], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x1002751f
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x41f4], 0
mov eax, dword [ebx + 0x422c]
test eax, eax
je 0x10027598
mov dword [ebx + 0x4228], 0
mov dword [ebx + 0x4224], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027576
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x422c], 0
mov eax, dword [ebx + 0x51c0]
test eax, eax
je 0x100275ef
mov dword [ebx + 0x51bc], 0
mov dword [ebx + 0x51b8], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100275cd
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x51c0], 0
mov eax, dword [ebx + 0x51cc]
test eax, eax
je 0x10027646
mov dword [ebx + 0x51c8], 0
mov dword [ebx + 0x51c4], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027624
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x51cc], 0
mov eax, dword [ebx + 0x4288]
test eax, eax
je 0x1002769d
mov dword [ebx + 0x4284], 0
mov dword [ebx + 0x4280], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x1002767b
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x4288], 0
mov eax, dword [ebx + 0x4294]
test eax, eax
je 0x100276f4
mov dword [ebx + 0x4290], 0
mov dword [ebx + 0x428c], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100276d2
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x4294], 0
mov eax, dword [ebx + 0x42a0]
test eax, eax
je 0x1002774b
mov dword [ebx + 0x429c], 0
mov dword [ebx + 0x4298], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027729
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x42a0], 0
mov eax, dword [ebx + 0x5218]
test eax, eax
je 0x100277a2
mov dword [ebx + 0x5214], 0
mov dword [ebx + 0x5210], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027780
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x5218], 0
mov eax, dword [ebx + 0x520c]
test eax, eax
je 0x100277f9
mov dword [ebx + 0x5208], 0
mov dword [ebx + 0x5204], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100277d7
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x520c], 0
mov esi, dword [ebx + 0x5240]
test esi, esi
je 0x1002782b
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 0x10027821
push dword [ebx + 0x5240]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x5240], 0
mov eax, dword [ebx + 0x524c]
test eax, eax
je 0x10027882
mov dword [ebx + 0x5248], 0
mov dword [ebx + 0x5244], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x10027860
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x524c], 0
mov eax, dword [ebx + 0x5278]
test eax, eax
je 0x100278d9
mov dword [ebx + 0x5274], 0
mov dword [ebx + 0x5270], 0
mov ecx, dword [0x100ef758]
test ecx, ecx
je 0x100278b7
dec dword [ecx + 0xa8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [0x100ef760]
mov dword [ebp - 0x10], 0xffffffff
push ecx
push eax
call dword [0x100e7c14]
add esp, 8
mov dword [ebx + 0x5278], 0
mov byte [ebx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret