Function at 0x4ba370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f608c
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x284]
push 0x1ff
xor esi, esi
lea eax, [esp + 0x75]
push esi
push eax
mov dword [esp + 0x38], edi
mov byte [esp + 0x7c], 0
call sub.MSVCR90.dll_memset
lea ebp, [esp + 0x7c]
add esp, 0xc
sub ebp, edi
mov eax, edi
mov dword [esp + 0x30], ebp
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x4ba3e0
mov byte [esp + 0x7a], cl
lea eax, [esp + 0x78]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
test cl, cl
jne 0x4ba3f2
lea eax, [esp + 0x75]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
test cl, cl
jne 0x4ba400
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [esp + 0x27c], esi
test byte [edi + 0x604], 8
mov bl, 4
lea ecx, [esp + 0x14]
je 0x4ba440
test byte [0x1043044], bl
je 0x4ba439
push str..txlog
jmp 0x4ba445
push str..tdlog
jmp 0x4ba445
push str..tclog
call dword [sym.imp.mfc90.dll_Ordinal_820]
push str.Log_
lea ecx, [esp + 0x44]
push 0x103ad10
push ecx
call fcn.00402a60
mov byte [esp + 0x288], 1
lea edx, [esp + 0x7c]
push edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00402a60
mov byte [esp + 0x294], 2
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004029d0
add esp, 0x24
mov byte [esp + 0x27c], bl
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x27c], 5
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x4ff418
push 0x502d68
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
push 0x1070cd0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push edi
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x284], 6
mov byte [esp + 0x284], 5
mov ecx, dword [esp + 0x40]
call fcn.004ab500
test eax, eax
jne 0x4ba6e5
mov eax, edi
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x4ba516
mov byte [esp + 0x74], cl
mov byte [esp + 0x77], cl
mov byte [esp + 0x7a], cl
lea ecx, [esp + 0x78]
push ecx
call fcn.004d8d70
lea edx, [esp + 0x79]
push edx
mov edi, eax
call fcn.004d8d70
mov ebp, eax
lea eax, [esp + 0x78]
push eax
call fcn.004d8d70
xor ecx, ecx
add esp, 0xc
cmp eax, 0x76c
setge cl
test ecx, ecx
je 0x4ba6d1
lea ecx, [ebp - 1]
cmp ecx, 0xb
ja 0x4ba6d1
lea edx, [edi - 1]
cmp edx, 0x1e
ja 0x4ba6d1
add eax, 0xfffff894
mov edx, 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], 0xffffffff
call dword [sym.imp.MSVCR90.dll__mktime64]
mov edi, eax
mov ebp, edx
mov ecx, edi
and ecx, ebp
add esp, 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
cmp ecx, 0xffffffff
je 0x4ba6db
inc esi
push 0
mov eax, esi
cdq
push 0x15180
push edx
push eax
call fcn.004e0460
add edi, eax
adc ebp, edx
push str._Y_m_d
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
call fcn.00409400
mov byte [esp + 0x27c], 7
push str.Log_
lea eax, [esp + 0x48]
push 0x103ad10
push eax
call fcn.00402a60
mov byte [esp + 0x288], 8
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004029d0
mov byte [esp + 0x294], 9
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
call fcn.004029d0
add esp, 0x24
mov byte [esp + 0x27c], 0xa
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [esp + 0x27c], 9
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x27c], 8
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x27c], 7
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_601]
push 0x4ff418
push 0x502d68
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
push 0xa
call ebx
mov byte [esp + 0x27c], 5
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
cmp esi, 0x1e
jge 0x4ba6e5
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
jmp 0x4ba4e0
push 0x80004005
call fcn.004019d0
push 0x80070057
call fcn.004019d0
push 0x1070cd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [esp + 0x27c], 0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x27c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov al, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004e0148
add esp, 0x26c
ret 4