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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447e15
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5a800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0xc]
test esi, esi
jne 0x43918c
cmp dword [ecx + 0x24], esi
mov esi, 0x5962e4
je 0x43918c
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.00402e10
mov byte [ebp - 4], 3
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x4392bc
cmp word [esi], bx
je 0x4392bc
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439200
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 0x439243
push edi
lea ecx, [ebp - 0x34]
call fcn.00436bf0
mov edi, eax
mov eax, dword [ebp - 0x10]
jmp 0x43929c
test edi, edi
jne 0x43924c
mov eax, dword [ebp - 0x10]
jmp 0x43929c
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 0x439287
mov ecx, 0x5a8eb8
call fcn.00437890
mov edi, eax
test edi, edi
jne 0x43928e
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
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 0x4392bc
lea ebx, [eax - 1]
mov dword [ebp - 0x14], ebx
jmp 0x4392c1
mov edi, 0x596283
mov eax, dword [ebp + 8]
test eax, eax
je 0x439306
cmp word [eax], 0
je 0x439306
test ebx, ebx
js 0x439306
push 0x597d54
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x439306
push esi
push ebx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ebx, ebx
cmp eax, dword [ebp - 0x14]
push esi
sete bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
jmp 0x439308
xor ebx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.00402b00
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 0x43934f
mov eax, dword [ebp - 0x34]
push edx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x43934a
mov ecx, 0x5a8eb8
call fcn.00437980
jmp 0x43934f
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