Function at 0x103969f
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x10cd014
call fcn.010b53c2
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], eax
call fcn.01033230
xor ebx, ebx
push 1
push ebx
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0xa
call fcn.01035834
mov edi, eax
cmp edi, 0xffffffff
je 0x1039769
mov dword [ebp - 0x4c], 0xa
mov eax, edi
sub eax, dword [ebp - 0x50]
mov ecx, esi
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x2c]
push eax
call fcn.010372dc
push 0x1002a8c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
call fcn.010377ae
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0103332c
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.01032f16
inc edi
push ebx
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
push 1
cmp dword [esi + 0x14], edi
je 0x1039764
call fcn.01032f16
push 1
push edi
lea eax, [ebp - 0x4c]
push eax
mov ecx, esi
call fcn.01035834
mov edi, eax
cmp edi, 0xffffffff
jne 0x10396ee
jmp 0x1039769
call fcn.01032f16
cmp dword [ebp - 0x34], ebx
jne 0x103977a
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.0103365f
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push 0xfeff
push eax
call fcn.01037846
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0103365f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.01032f16
mov esi, dword [ebp - 0x54]
cmp dword [esi + 0x18], 8
jb 0x10397b8
mov eax, dword [esi + 4]
jmp 0x10397bb
lea eax, [esi + 4]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, 0x10024b4
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
jne 0x10398a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.01033bfc
push 0x1002b00
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.01033c5d
push edi
lea eax, [ebp - 0x94]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x2c]
push 0x100268c
push eax
mov byte [ebp - 4], 6
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.01032f16
push esi
lea eax, [ebp - 0x94]
push 0x1002aec
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.01033bb7
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.01032f16
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.010907af
push 0x10de07c
lea eax, [ebp - 0x24]
push eax
call fcn.010b4e4c
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], ebx
jae 0x10398b7
lea ecx, [ebp - 0x44]
push ebx
lea edx, [ebp - 0x5c]
push edx
mov edx, dword [ebp - 0x34]
add edx, edx
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x103996e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 7
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.01033bfc
push 0x1002aac
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.01033c5d
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0103e9b9
push eax
lea eax, [ebp - 0x94]
push 0x1002a94
push eax
mov byte [ebp - 4], 0xa
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
call fcn.01033bb7
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.01032f16
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.01032f16
push esi
lea eax, [ebp - 0x94]
push 0x10029b0
push eax
call fcn.01033a74
add esp, 0xc
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.01033bb7
mov byte [ebp - 4], 9
jmp 0x1039880
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], edi
call fcn.010350c3
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.01032f16
call fcn.010b5454
ret 8