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

Disassembly:
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
xlatb
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004c6765
stc
fisttp dword [edi]
clc
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4c8952
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4c8952
call fcn.004c6765
leave
xchg ebp, eax
fisttp word [ebx - 0x20fcdba6]
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004c6765
je 0x4c8938
int1
sar edi, cl
jne 0x4c899c
push dword [ebp + 4]
push dword [ebp]
call fcn.004c6f65
fcom dword [ebx]
mov ecx, dword [ebp + 0x14]
add ecx, 4
call sub.mfc120u.dll_Ordinal_8391
mov byte [ebp - 0xd], 1
push 0x53d850
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc120u.dll_Ordinal_2954]
test eax, eax
je 0x4c89d5
in eax, 0xff
invalid
push 0x53d85c
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc120u.dll_Ordinal_2954]
test eax, eax
jne 0x4c89d9
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], 0
je 0x4c89fe
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x14]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x78]
call eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x28], 0xf
jne 0x4c8a8c
push 1
movzx ecx, byte [ebp - 0xd]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
push 0x53d864
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.004c9440
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x4c8a87
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x38], 0
jmp 0x4c8bf4
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x2c]
call edx
cmp eax, 0xf
jne 0x4c8b08
cmp dword [ebp - 0x28], 1
je 0x4c8aac
cmp dword [ebp - 0x28], 3
jne 0x4c8b08
push 1
movzx eax, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_280]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 3
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.004c9440
mov byte [ebp - 0xf], al
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x4c8b03
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], 0
jmp 0x4c8bf4
cmp dword [ebp + 8], 0
je 0x4c8b1f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
add esp, 4
test eax, eax
jne 0x4c8b3c
cmp dword [ebp - 0x18], 0
je 0x4c8b3c
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x58]
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x38], eax
jmp 0x4c8b5d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4c8b5d
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.004373b0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x4c8bd5
cmp dword [ebp - 0x18], 0
je 0x4c8bd5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x38]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004c7e20
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004c8800
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004c9270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x4c8bf4
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x34], 0
je 0x4c8bf4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x34]
mov eax, dword [edx + 0x90]
call eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x38], 0
jne 0x4c8c06
mov dword [ebp - 0x3c], 1
jmp 0x4c8c0d
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10