Function at 0x4b1860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ec7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5e8024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4b1ac7
cmp eax, 0xffffffff
je 0x4b1ac7
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x1c], 0x103
jne 0x4b1ac7
lea ecx, [ebp - 0x3c]
call fcn.004d1f60
mov dword [ebp - 4], 0
call fcn.00409d30
test eax, eax
je 0x4b1ad9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, str.Advinst_Estimate_
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x4b1900
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4b190c
push 0x11
push str.Advinst_Estimate_
call fcn.004098b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004b0a30
push ecx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call fcn.005268f0
add esp, 4
call fcn.00409d30
test eax, eax
je 0x4b1ad9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.00485b70
test al, al
jne 0x4b196e
push ebx
lea ecx, [ebp - 0x14]
call fcn.00486510
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
mov edi, dword [ebp - 0x14]
push edi
call fcn.004a4180
mov byte [ebp - 4], 6
lea edx, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.004980a0
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
push eax
push 0
call fcn.004d2000
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b19c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b19df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409d30
test eax, eax
je 0x4b1ad9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
mov eax, 0x5a6190
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x4b1a17
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4b1a23
push 5
push 0x5a6190
call fcn.004098b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x18]
push 0
push ecx
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 5
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4b1a64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4b1a7f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
push dword [ebp - 0x24]
call fcn.0052e812
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4b1ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004d2100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409a00
int3