Function at 0x1000e260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004faf0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1007e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x1007eb38]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 6
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x1000e409
cmp byte [ebx + 1], 0
je 0x1000e409
mov byte [eax + 0x10], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x1000e409
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1002f8d0
mov ecx, esi
call fcn.1002fad0
add esi, 0x3c
xor edx, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
cmp dword [esi], edx
jle 0x1000e383
xor ecx, ecx
mov ebx, esi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebx + 8]
mov esi, dword [ecx + eax]
test esi, esi
je 0x1000e36b
mov ecx, esi
call fcn.100322a0
mov ecx, dword [0x1007eb38]
test ecx, ecx
je 0x1000e35f
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x24], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e355
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x24]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
call edi
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x18]
inc edx
add ecx, 4
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp edx, dword [ebx]
jl 0x1000e2f4
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.10009480
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x54]
mov byte [eax + 0x18], 0
call fcn.10023320
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0x48]
call fcn.10023320
mov ecx, esi
call fcn.10023320
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x1007eb38]
test ecx, ecx
je 0x1000e401
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x1000e3f7
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push dword [ebp - 0x14]
call edi
add esp, 4
lea ecx, [ebx + 0x3d28]
mov dword [ebx + 0x2c], 0
call fcn.10009480
cmp byte [ebx], 0
je 0x1000ec4d
cmp byte [ebx + 0x5dbc], 0
je 0x1000e487
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x1000e487
mov eax, dword [0x1007eb38]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [eax + 0x5dc0], 0
call fcn.10022230
mov edx, 0x1006f678
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.1000c280
mov esi, eax
test esi, esi
je 0x1000e487
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 1
push dword [ebp - 0x2c]
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 [ebx + 0x5df4]
mov esi, dword [ebx + 0x5dfc]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x2c], eax
cmp esi, eax
je 0x1000e4ba
cmp dword [esi + 4], 6
jne 0x1000e4b3
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
mov eax, dword [ebp - 0x2c]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x1000e4a0
xor ecx, ecx
lea edx, [ebx + 0x3f40]
mov dword [ebp - 0x20], ecx
cmp dword [edx], ecx
jle 0x1000e563
xor edi, edi
nop
mov eax, dword [edx + 8]
mov esi, dword [edi + eax]
test esi, esi
je 0x1000e54e
mov ecx, esi
call fcn.1000f470
mov ecx, dword [0x1007eb38]
test ecx, ecx
je 0x1000e53b
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e531
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x20]
lea edx, [ebx + 0x3f40]
add esp, 4
inc ecx
add edi, 4
mov dword [ebp - 0x20], ecx
cmp ecx, dword [edx]
jl 0x1000e4d0
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, edx
call fcn.10009480
lea ecx, [ebx + 0x3f4c]
call fcn.10009480
lea ecx, [ebx + 0x3f58]
call fcn.10009480
mov dword [ebx + 0x3f8c], 0
mov esi, dword [ebx + 0x3f6c]
test esi, esi
je 0x1000e612
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x3f68], 0
mov dword [ebx + 0x3f64], 0
test ecx, ecx
je 0x1000e602
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e5f8
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x3f6c], 0
lea ecx, [ebx + 0x3f70]
call fcn.10009480
or eax, 0xffffffff
mov dword [ebx + 0x4a38], 0
mov dword [ebx + 0x3f94], 0
lea edi, [ebx + 0x477c]
mov dword [ebx + 0x3f90], 0
mov ecx, 0x4d
mov dword [ebx + 0x400c], 0
mov dword [ebx + 0x3ffc], 0
mov dword [ebx + 0x3f98], 0
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x48b0]
call fcn.10009480
lea ecx, [ebx + 0x48bc]
call fcn.10009480
mov esi, dword [ebx + 0x49c8]
test esi, esi
je 0x1000e704
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x49c4], 0
mov dword [ebx + 0x49c0], 0
test ecx, ecx
je 0x1000e6ec
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x1000e6e2
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
mov dword [ebx + 0x49c8], 0
jmp 0x1000e70a
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebx + 0x49d4]
test edi, edi
je 0x1000e792
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x49d0], 0
mov dword [ebx + 0x49cc], 0
test ecx, ecx
je 0x1000e782
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e778
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x49d4], 0
lea ecx, [ebx + 0x49d8]
call fcn.10009480
lea ecx, [ebx + 0x4a08]
call fcn.10009480
lea ecx, [ebx + 0x4a14]
call fcn.10009480
mov edi, dword [ebx + 0x4a28]
test edi, edi
je 0x1000e83b
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x4a24], 0
mov dword [ebx + 0x4a20], 0
test ecx, ecx
je 0x1000e82b
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e821
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4a28], 0
lea ecx, [ebx + 0x4a2c]
call fcn.10023620
lea ecx, [ebx + 0x4d34]
call fcn.100233c0
mov edi, dword [ebx + 0x4d5c]
test edi, edi
je 0x1000e8d9
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x4d58], 0
mov dword [ebx + 0x4d54], 0
test ecx, ecx
je 0x1000e8c9
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e8bf
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4d5c], 0
mov edi, dword [ebx + 0x4d68]
test edi, edi
je 0x1000e961
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x4d64], 0
mov dword [ebx + 0x4d60], 0
test ecx, ecx
je 0x1000e951
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000e947
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push edi
call esi
add esp, 4
mov dword [ebx + 0x4d68], 0
xor edi, edi
lea eax, [ebx + 0x4cdc]
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x4cd4], edi
jle 0x1000e999
xor esi, esi
mov ecx, dword [eax]
add ecx, esi
call fcn.100099b0
inc edi
lea eax, [ebx + 0x4cdc]
add esi, 0x1c
cmp edi, dword [ebx + 0x4cd4]
jl 0x1000e976
lea eax, [ebx + 0x4cdc]
jmp 0x1000e99c
mov dword [ebp - 0x20], eax
mov esi, dword [eax]
test esi, esi
je 0x1000ea1c
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x4cd8], 0
mov dword [ebx + 0x4cd4], 0
test ecx, ecx
je 0x1000ea05
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x1000e9fb
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call edi
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [eax], 0
jmp 0x1000ea22
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [ebx + 0x4cf8]
call fcn.10023500
cmp dword [ebx + 0x4cec], 0
mov dword [ebp - 0x20], 0
jle 0x1000ea80
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebx + 0x4cf4]
add esi, ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 1
call fcn.1002f2b0
lea ecx, [esi + 0x1c]
call fcn.10023320
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
add ecx, 0x6c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
cmp eax, dword [ebx + 0x4cec]
jl 0x1000ea42
mov esi, dword [ebx + 0x4cf4]
test esi, esi
je 0x1000eb08
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x4cf0], 0
mov dword [ebx + 0x4cec], 0
test ecx, ecx
je 0x1000eaf8
movsx eax, word [ecx + 0x5ee4]
mov edx, dword [ecx + 0x3f08]
add eax, 0xbdd
mov dword [ebp - 0x2c], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000eaee
movsx eax, word [ecx + 0x5ee4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x2c]
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4cf4], 0
lea ecx, [ebx + 0x4d24]
call fcn.10009480
lea ecx, [ebx + 0x5d24]
call fcn.10009480
lea ecx, [ebx + 0x5d30]
call fcn.10009480
lea ecx, [ebx + 0x4da4]
call fcn.10009480
lea ecx, [ebx + 0x4db0]
call fcn.10009480
lea ecx, [ebx + 0x4dbc]
call fcn.10009480
lea ecx, [ebx + 0x5c1c]
mov dword [ebx + 0x5c18], 0
call fcn.10009480
lea ecx, [ebx + 0x5ddc]
call fcn.10009480
mov eax, dword [ebx + 0x5dd8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1000ebed
mov ecx, dword [0x1007eb38]
mov dword [ebx + 0x5dd4], 0
mov dword [ebx + 0x5dd0], 0
test ecx, ecx
je 0x1000ebdd
movsx edx, word [ecx + 0x5ee4]
lea eax, [ecx + 0x5ee8]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x1000ebd0
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5ee4], ax
cwde
add eax, 0xbdd
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ee0]
mov eax, dword [ebp - 0x2c]
push eax
call edi
add esp, 4
mov dword [ebx + 0x5dd8], 0
cmp dword [ebx + 0x5e2c], 0
je 0x1000ec1f
mov esi, dword [ebx + 0x5e2c]
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 0x1000ec15
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x5e2c], 0
lea ecx, [ebx + 0x5e30]
call fcn.10009480
lea ecx, [ebx + 0x5e5c]
call fcn.10009480
lea ecx, [ebx + 0x5e68]
call fcn.10009480
mov dword [ebx + 0x5e74], 0
mov byte [ebx], 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