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

Disassembly:
push 0xffffffffffffffff
push 0x4b1f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
push edi
mov dword [esp + 0x44], eax
xor edi, edi
mov dword [esp + 0x48], eax
mov eax, dword [0x586200]
xor esi, esi
cmp eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x3c], edi
je 0x4a4de4
lea ecx, [esp + 0xc]
push ecx
push 0x4cb1d8
push 0x4cb1c8
call eax
test eax, eax
jl 0x4a4de4
mov eax, dword [esp + 0xc]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0xc]
cmp eax, edi
jl 0x4a4dda
mov eax, dword [esp + 0x70]
mov dword [esp + 0x3c], 0x10
mov word [esp + 0x44], 0x4d
mov dword [esp + 0x48], str.atcbpK1Hdw94gef3
mov eax, dword [eax + 4]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x4a4dd0
push ebx
push ebp
push edi
add ecx, 0x1c
call sub.MFC42u.DLL_CString::GetBuffer
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x4a4db4
push 0x5861e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x1c]
add eax, 0xc
mov dword [esp + 0x54], edx
push ecx
lea ecx, [esp + 0x68]
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], eax
call fcn.004a6210
mov ebx, dword [0x5861f8]
mov edx, dword [0x545ea4]
mov dword [esp + 0x70], edi
mov eax, dword [ebx + 4]
mov esi, eax
mov ebp, dword [eax + 4]
mov dword [esp + 0x1c], esi
cmp ebp, edx
mov al, 1
je 0x4a4cb0
mov ecx, 0x10
lea edi, [ebp + 0xc]
lea esi, [esp + 0x54]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x1c], ebp
je 0x4a4c97
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
je 0x4a4ca5
mov ebp, dword [ebp]
jmp 0x4a4ca8
mov ebp, dword [ebp + 8]
cmp ebp, edx
jne 0x4a4c7c
mov esi, dword [esp + 0x1c]
mov cl, byte [ebx + 8]
test cl, cl
je 0x4a4cd9
lea ecx, [esp + 0x12]
lea edx, [esp + 0x54]
push ecx
push edx
push esi
lea eax, [esp + 0x30]
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.0040ffb0
jmp 0x4a4d74
test al, al
mov dword [esp + 0x18], esi
je 0x4a4d24
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.0040e1c0
mov edx, dword [esp + 0x18]
mov edi, dword [eax]
cmp edx, edi
sete al
test al, al
je 0x4a4d1b
lea eax, [esp + 0x12]
lea ecx, [esp + 0x54]
push eax
push ecx
push esi
lea edx, [esp + 0x38]
push ebp
push edx
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.0040ffb0
jmp 0x4a4d74
lea ecx, [esp + 0x18]
call fcn.004106c0
mov eax, dword [esp + 0x18]
mov ecx, 0x10
lea edi, [esp + 0x54]
lea esi, [eax + 0xc]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a4d3f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x4a4d66
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x12]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.0040ffb0
jmp 0x4a4d74
lea edx, [esp + 0x13]
mov byte [esp + 0x13], 0
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004a5410
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.004a5410
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push 0x5861e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
xor edi, edi
lea ecx, [esp + 0x20]
call fcn.00410320
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 4]
jne 0x4a4bfb
pop ebp
pop ebx
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret