Function at 0x476550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ac1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, ecx
call fcn.00441900
mov ecx, eax
add ecx, 0x1328
call fcn.0049ab60
mov ecx, dword [ebx + 0xc]
push 0
push 0xc
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0042fbd0
add esp, 0x10
mov esi, dword [esp + 0x28]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4765e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4765e6
xor eax, eax
mov ecx, eax
call fcn.00439300
test eax, eax
mov eax, 0x4da01c
jne 0x4765fb
mov eax, 0x4da018
push eax
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_1
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x476616
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x476618
xor eax, eax
mov ecx, eax
call fcn.00439370
mov byte [esi + 0x10], al
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x476634
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x476636
xor eax, eax
push edi
mov ecx, eax
call fcn.00439140
and eax, 0xffff
lea ecx, [esp + 0x2c]
mov ebp, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
lea edi, [edi + edi*4]
shl edi, 5
call sub.MFC42.DLL_CString::CString_4
push edi
lea eax, [esp + 0x30]
push str._08ld
push eax
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x38]
add esp, 0xc
xor edx, edx
mov ecx, 6
movsx eax, byte [ecx + edi]
sub eax, 0x30
shl ebp, 4
imul eax, ebp
add edx, eax
dec ecx
jns 0x476685
movsx ecx, byte [edi + 7]
mov dword [esp + 0x24], 0xffffffff
lea edi, [ecx + edx - 0x30]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov dword [esi + 0x14], edi
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4766c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4766c7
xor eax, eax
mov ecx, eax
call fcn.00439180
and eax, 0xffff
lea ecx, [esp + 0x2c]
mov ebp, 1
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
lea edi, [edi + edi*4]
shl edi, 5
call sub.MFC42.DLL_CString::CString_4
push edi
lea eax, [esp + 0x30]
push str._08ld
push eax
mov dword [esp + 0x30], 2
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ecx, ecx
mov edx, 6
movsx eax, byte [edx + edi]
sub eax, 0x30
shl ebp, 4
imul eax, ebp
add ecx, eax
dec edx
jns 0x476719
movsx edx, byte [edi + 7]
or ebp, 0xffffffff
lea edi, [edx + ecx - 0x30]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x2c]
mov al, byte [edi + 0xe]
push eax
push 0x12f0
push ecx
mov ecx, 0x4dc390
call fcn.00498a00
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
push 0
add edi, 0x38
push 0x10
lea edx, [esp + 0x34]
push edi
push edx
call fcn.0042fbd0
add esp, 0x10
lea edi, [esi + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebx + 0xc]
xor ecx, ecx
lea edx, [esp + 0x2c]
mov cx, word [eax + 0x2b9]
push ecx
push 0x12cd
push edx
mov ecx, 0x4dc390
call fcn.00498a00
push eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x28], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x2b0]
mov dword [esi + 0x24], ecx
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0x2b4]
mov dword [esi + 0x28], eax
call sub.MFC42.DLL_AfxGetThread
test eax, eax
pop edi
je 0x476828
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x47682a
xor eax, eax
mov ecx, eax
call fcn.00439300
test eax, eax
mov eax, dword [ebx + 0xc]
mov cl, byte [eax + 0x2b8]
je 0x476843
and cl, 0xfe
jmp 0x476846
or cl, 1
mov byte [eax + 0x2b8], cl
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x28]
mov cl, byte [eax + 0x2b8]
and ecx, 1
push ecx
push 0x12db
push edx
mov ecx, 0x4dc390
call fcn.00498a00
push eax
lea ecx, [esi + 0x2c]
mov dword [esp + 0x24], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0xc]
lea edx, [esp + 0x14]
mov cl, byte [eax + 0x2af]
and ecx, 1
push ecx
push 0x12df
push edx
mov ecx, 0x4dc390
call fcn.00498a00
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x24], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0xc]
mov cl, byte [eax + 4]
shr ecx, 6
and ecx, 1
mov dword [esi + 0x48], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x18]
mov al, byte [edx + 7]
and eax, 1
mov dword [esi + 0x4c], eax
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4