Function at 0x10038f80
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bae5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x101c200c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0xc]
test esi, esi
jne 0x10038fbc
cmp dword [ecx + 0x24], esi
mov esi, 0x101afdf4
je 0x10038fbc
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x34], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x34], vtable.CVolObject.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10002df0
mov byte [ebp - 4], 3
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x100390ea
cmp word [esi], bx
je 0x100390ea
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039030
push 0
push 0
sub ecx, edx
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push esi
push 0
push 0
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x28], ebx
je 0x10039073
push edi
lea ecx, [ebp - 0x34]
call fcn.10036b10
mov edi, eax
mov eax, dword [ebp - 0x10]
jmp 0x100390ca
test edi, edi
jne 0x1003907c
mov eax, dword [ebp - 0x10]
jmp 0x100390ca
mov ebx, dword [ebp - 0x1c]
mov eax, 0x40
test ebx, ebx
cmovle ebx, eax
mov eax, edi
cdq
idiv ebx
mov eax, dword [ebp - 0x34]
sub ebx, edx
add ebx, edi
push ebx
mov eax, dword [eax]
cmp eax, method.CWString.virtual_0
jne 0x100390b5
mov ecx, 0x101c40b8
call fcn.100376c0
mov edi, eax
test edi, edi
je 0x100391b3
jmp 0x100390bc
lea ecx, [ebp - 0x34]
call eax
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
xor ebx, ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], eax
push 0
push 0
push eax
push edi
push dword [ebp - 0x18]
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100390ea
lea ebx, [eax - 1]
mov dword [ebp - 0x14], ebx
jmp 0x100390ef
mov edi, 0x101afd93
mov eax, dword [ebp + 8]
test eax, eax
je 0x10039131
cmp word [eax], 0
je 0x10039131
test ebx, ebx
js 0x10039131
push 0x101b17dc
push eax
call fcn.1004441a
mov esi, eax
add esp, 8
test esi, esi
je 0x10039131
push esi
push ebx
push 1
push edi
call fcn.10042f8d
xor ebx, ebx
cmp eax, dword [ebp - 0x14]
push esi
sete bl
call fcn.10041fff
add esp, 0x14
jmp 0x10039133
xor ebx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10002af0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], vtable.CVolMem.0
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x1003917a
mov eax, dword [ebp - 0x34]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x10039175
mov ecx, 0x101c40b8
call fcn.100377b0
jmp 0x1003917a
lea ecx, [ebp - 0x34]
call eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov dword [ebp - 0x34], vtable.CVolObject.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 0xc
push 0xffffffffffffffff
call fcn.10041c16
int3