Function at 0x1009238f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2c8]
sub esp, 0x348
mov eax, dword [0x1011c710]
push ebx
mov ebx, dword [ebp + 0x2d4]
xor eax, ebp
cmp dword [ebp + 0x2dc], 3
push esi
mov dword [ebp + 0x2c4], eax
push edi
mov esi, ecx
je 0x100923e2
cmp dword [ebp + 0x2dc], 2
je 0x1009248e
cmp dword [ebp + 0x2dc], 1
je 0x1009248e
mov eax, 0x10000
jmp 0x100926f7
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x2d0]
cmp edi, eax
je 0x10092434
cmp eax, 0xffffffff
je 0x100923fc
push dword [esi]
call fcn.1009061a
pop ecx
mov eax, dword [esi]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x100923d8
cmp edi, dword [eax + 0x10]
jge 0x1009241c
push eax
call fcn.100903dc
jmp 0x1009241b
push dword [esi]
call fcn.1009041a
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x10092414
push dword [esi + 0x138]
push eax
call fcn.10091f55
pop ecx
pop ecx
mov dword [esi + 4], edi
lea eax, [ebp - 0x71]
push eax
push dword [ebp + 0x2d8]
push ebx
push dword [esi]
call fcn.100920b5
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x1009245b
push dword [esi]
call fcn.1009061a
or dword [esi + 4], 0xffffffff
pop ecx
cmp byte [ebp - 0x71], 0
je 0x10092468
xor eax, eax
jmp 0x100926f7
test edi, edi
jle 0x10092476
mov eax, 0x600
jmp 0x100926f7
xor eax, eax
cmp edi, 0xffffff96
setne al
dec eax
and eax, 0xfb001000
add eax, 0x5000000
jmp 0x100926f7
cmp dword [esi + 4], 0xffffffff
je 0x1009249c
push dword [esi]
call fcn.1009061a
pop ecx
mov eax, dword [esi]
mov edi, dword [ebp + 0x2d0]
or dword [esi + 4], 0xffffffff
cmp edi, dword [eax + 4]
jge 0x100923d8
cmp edi, dword [eax + 0x10]
jge 0x100924c6
push eax
call fcn.100903dc
jmp 0x100924c5
push dword [esi]
call fcn.1009041a
pop ecx
mov eax, dword [esi]
cmp dword [eax + 0x10], edi
jl 0x100924be
lea eax, [ebp - 0x70]
push eax
push edi
mov ecx, esi
call fcn.100907cb
test byte [ebp + 0x98], 0x10
je 0x1009251d
cmp dword [ebp + 0x2dc], 1
je 0x10092461
mov al, byte [ebx]
cmp al, 0x2f
je 0x10092503
cmp al, 0x5c
je 0x10092503
test al, al
je 0x10092508
cmp byte [ebx + 1], 0x3a
jne 0x10092508
push ebx
push 0
jmp 0x10092510
push ebx
add esi, 0x140
push esi
call fcn.10090c1f
pop ecx
xor eax, eax
jmp 0x100926f6
cmp dword [ebp + 0x2dc], 1
jne 0x1009252e
mov dword [ebp - 0x7c], ebx
jmp 0x100925b5
mov al, byte [ebx]
mov edi, ebx
mov ecx, ebx
jmp 0x10092544
cmp al, 0x2f
je 0x1009253e
cmp al, 0x5c
jne 0x10092541
lea edi, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10092536
lea eax, [ebp + 0x1c0]
push ebx
push eax
call fcn.100ac900
cmp edi, ebx
pop ecx
pop ecx
jne 0x100925c5
mov byte [ebp + 0x1c0], 0
push edi
lea eax, [ebp + 0x1c0]
push eax
lea ebx, [esi + 0x140]
push ebx
lea eax, [ebp + 0xbc]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1c0]
push eax
push ebx
call fcn.10090c1f
add esp, 0x1c
xor eax, eax
push eax
push dword [ebp + 0x98]
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x1009262d
mov eax, 0x200
jmp 0x100926f7
mov eax, edi
sub eax, ebx
mov byte [ebp + eax + 0x1c0], 0
cmp byte [ebp + 0x1c0], 0x2f
je 0x100925fd
cmp byte [ebp + 0x1c0], 0x5c
je 0x100925fd
cmp byte [ebp + 0x1c0], 0
je 0x10092562
cmp byte [ebp + 0x1c1], 0x3a
jne 0x10092562
push edi
lea eax, [ebp + 0x1c0]
push eax
lea eax, [ebp + 0xbc]
push 0x100e3bf4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x1c0]
push eax
push 0
call fcn.10090c1f
add esp, 0x18
jmp 0x10092593
push dword [esi + 0x138]
push dword [esi]
call fcn.10091f55
cmp dword [esi + 0x13c], 0
pop ecx
pop ecx
mov ebx, 0x4000
jne 0x10092657
push ebx
call fcn.100c6c30
pop ecx
mov dword [esi + 0x13c], eax
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x71]
push eax
push ebx
push dword [esi + 0x13c]
push dword [esi]
call fcn.100920b5
mov edi, eax
add esp, 0x10
cmp edi, 0xffffff96
je 0x100926aa
test edi, edi
jl 0x100926a1
jle 0x10092697
push 0
lea eax, [ebp - 0x80]
push eax
push edi
push dword [esi + 0x13c]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100926b3
cmp byte [ebp - 0x71], 0
jne 0x100926bc
test edi, edi
jne 0x1009265b
mov dword [ebp - 0x78], 0x5000000
jmp 0x100926da
mov dword [ebp - 0x78], 0x1000
jmp 0x100926da
mov dword [ebp - 0x78], 0x400
jmp 0x100926da
lea eax, [ebp + 0xac]
push eax
lea eax, [ebp + 0x9c]
push eax
lea eax, [ebp + 0xa4]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x2dc], 1
je 0x100926ec
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi]
call fcn.1009061a
mov eax, dword [ebp - 0x78]
pop ecx
mov ecx, dword [ebp + 0x2c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100ac33f
add ebp, 0x2c8
leave
ret 0x10