Function at 0x487b16
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5961ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x34]
mov byte [esp + 0x28], 2
cmp eax, 0x4e
jae 0x487a14
shl eax, 6
add eax, 0x5bb0cc
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x34]
mov edi, 0x4d
cmp eax, edi
mov byte [esp + 0x28], 4
je 0x487a56
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
push 0x628394
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x487a64
push 0x639dc4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x34]
push edx
call fcn.0048a840
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, edi
je 0x487a84
push 0x20
lea ecx, [esp + 0x10]
call fcn.00453cf6
cmp dword [esp + 0x54], ebp
je 0x487ab8
lea eax, [esp + 0x50]
push 0x627c60
lea ecx, [esp + 0x58]
push eax
push ecx
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x28], 4
lea ecx, [esp + 0x54]
jmp 0x487ae4
lea edx, [esp + 0x50]
push 0x629e1c
lea eax, [esp + 0x58]
push edx
push eax
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x28], 4
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 0x34]
cmp eax, 0x11
ja case.0x487afd.55
xor edx, edx
mov dl, byte [eax + 0x487c18]
jmp dword [edx*4 + 0x487c08]
mov eax, dword [esi + 0x78]
cmp eax, ebp
jbe case.0x487afd.52
dec eax
mov dword [esi + 0x78], eax
mov ebp, 1
jmp case.0x487afd.55
mov eax, dword [esi + 0x78]
cmp eax, ebp
jbe case.0x487afd.55
dec eax
mov dword [esi + 0x78], eax
push 0x639dc4
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x78]
xor edi, edi
test eax, eax
mov byte [esp + 0x28], 7
jbe 0x487b53
push 0x62b124
lea ecx, [esp + 0x18]
call fcn.00453cfc
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jb 0x487b3d
test ebp, ebp
je 0x487b5a
inc dword [esi + 0x78]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_operator_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0x28
xchg esp, eax
mov ecx, 0x4d8dfffc
lodsb al, byte [esi]
lea ecx, [esp + 0x24]
mov byte [esp + 0x118], 0xa
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 0x12c]
push ecx
push edx
push esi
push ebx
call dword [ebx + 0x58]
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004a7fb0
test eax, eax
je 0x4a7ddd
lea ecx, [esp + 0x10]
push ecx
jmp 0x4a7e8d
test ecx, ecx
je 0x4a7d17
mov dword [ecx], eax
mov dword [esi + 8], eax
jmp 0x4a7895
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x4a7895
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x48]
push edx
push eax
lea ecx, [edi + 0x40]
call sub.MFC42.DLL_CMapStringToPtr::Lookup
test eax, eax
je 0x4a7e3c
cmp dword [esp + 0x48], 5
jne 0x4a7e3c
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push esi
lea eax, [esp + 0x30]
push ebx
push eax
mov ecx, edi
call fcn.004a52a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 0x35
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x118], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x60]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4a7e88
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.004b3240
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 0x36
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x118], 0xa
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
mov esi, dword [esp + 0x124]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x40], 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x118], 9
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x118], 1
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c
ret 0x14