Function at 0x4e2d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de464
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x65d4e4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x16c]
add ecx, 0x10
call fcn.0048fcf0
jmp 0x4e2d7d
lea ecx, [ebp - 0x14]
call fcn.00490220
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x16c]
add ecx, 0x10
call fcn.00413030
push eax
lea ecx, [ebp - 0x14]
call fcn.0048fd20
movzx edx, al
test edx, edx
je 0x4e306e
lea ecx, [ebp - 0x14]
call fcn.00413390
push eax
lea ecx, [ebp - 0x80]
call fcn.0040bf50
mov dword [ebp - 4], 0
push 0x60c898
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00404a60
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], closesocket
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x60]
call fcn.0040bf50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.0040bec0
movzx eax, al
test eax, eax
jne 0x4e3042
lea ecx, [ebp - 0x80]
call fcn.0040be10
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x4e3042
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
call fcn.0040be10
push eax
call fcn.0051c6c0
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x40]
jb 0x4e3042
ja 0x4e2e65
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x44]
jbe 0x4e3042
lea ecx, [ebp - 0x80]
call fcn.0040be10
push eax
call fcn.00504080
add esp, 4
test eax, eax
jne 0x4e2e83
mov dword [ebp - 0x64], 1
jmp 0x4e2e9f
lea ecx, [ebp - 0x80]
call fcn.0040be10
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
je 0x4e2e9f
mov dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], 0
je 0x4e2ed2
lea ecx, [ebp - 0x34]
call fcn.0040be10
push eax
call fcn.00504080
add esp, 4
push 0
lea ecx, [ebp - 0x34]
call fcn.0040be10
push eax
lea ecx, [ebp - 0x80]
call fcn.0040be10
push eax
call fcn.004ff170
add esp, 0xc
push str..pos
lea ecx, [ebp - 0x130]
call fcn.0040be30
mov byte [ebp - 4], 3
push str..log
lea ecx, [ebp - 0x14c]
call fcn.0040be30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x60]
push eax
call fcn.004fc450
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.0040bf30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.0040bf30
lea ecx, [ebp - 0x60]
call fcn.0040be10
push eax
call fcn.0051ae10
add esp, 4
test eax, eax
jne 0x4e2f9f
push 0x60c8b0
lea ecx, [ebp - 0x60]
call fcn.0040be10
push eax
call fcn.005b1ae9
add esp, 8
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x84], 0
je 0x4e2f9f
mov ecx, dword [ebp - 0x84]
push ecx
push 1
push 4
lea edx, [ebp - 0x88]
push edx
call fcn.005b1d61
add esp, 0x10
mov eax, dword [ebp - 0x84]
push eax
call fcn.005b1fa4
add esp, 4
push 1
push 2
lea ecx, [ebp - 0x10c]
call fcn.0040b040
mov byte [ebp - 4], 5
push 0x60c8b4
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004094f0
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x174]
call fcn.0040be10
push eax
push str.CMoniterLogFile::MoniterUplogLog
push 0x68
push 0x60c8ec
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.0040bf30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
call fcn.00409dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040bf30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0040bf30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040bf30
jmp 0x4e2d75
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005b1988
mov esp, ebp
pop ebp
ret