Function at 0x412d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x40]
push edi
mov dword [esp + 0x28], ecx
lea eax, [esi + 0x58]
lea ecx, [esp + 0x10]
push eax
call fcn.0042c6ee
add esi, 0x5c
lea ecx, [esp + 0x20]
push esi
mov dword [esp + 0x3c], 0
call fcn.0042c6ee
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x449014
push ecx
mov byte [esp + 0x40], 1
call esi
add esp, 8
test eax, eax
jne 0x412daa
push str.21CMX29CM
jmp 0x412dc2
mov edx, dword [esp + 0x10]
push 0x44911c
push edx
call esi
add esp, 8
test eax, eax
jne 0x412dcb
push str.29CMX42CM
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov bl, 2
push str.1234567890
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::FindOneOf
test eax, eax
jge 0x412dfe
mov edi, dword [esp + 0x14]
mov ebp, 0xe
mov dword [esp + 0x18], ebp
jmp 0x412e8f
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call esi
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x412e4c
mov ebp, 0xe
mov dword [esp + 0x18], ebp
push 0x58
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x412e86
inc eax
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push eax
call esi
mov edi, eax
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x412e8f
mov edi, 0x11
mov dword [esp + 0x14], edi
mov esi, dword [sym.imp.USER32.dll_InflateRect]
push 0xfffffffffffffffe
lea eax, [esp + 0x48]
push 0xfffffffffffffffe
push eax
call esi
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x58]
mov edx, eax
neg edx
neg eax
push edx
push eax
lea eax, [esp + 0x4c]
push eax
call esi
mov ecx, dword [esp + 0x20]
push str.PORTRAIT
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x412edb
mov eax, ebp
mov ebp, edi
mov edi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
fild dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
fidiv dword [esp + 0x14]
sub eax, esi
sub ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov esi, eax
mov ebx, ecx
fild dword [esp + 0x28]
mov dword [esp + 0x28], esi
fidiv dword [esp + 0x2c]
mov dword [esp + 0x2c], ebx
fld st(1)
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x412f4c
fild dword [esp + 0x2c]
fmul st(1)
call sub.MSVCRT.dll__ftol
sub esi, eax
mov ecx, dword [esp + 0x4c]
mov eax, esi
cdq
fstp st(0)
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
add edx, eax
sub ecx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
jmp 0x412f76
fild dword [esp + 0x28]
fdiv st(1)
call sub.MSVCRT.dll__ftol
sub ebx, eax
mov ecx, dword [esp + 0x50]
mov eax, ebx
cdq
fstp st(0)
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add edx, eax
sub ecx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
mov esi, dword [esp + 0x54]
test esi, esi
je 0x412fca
push 0x449100
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x412fb2
fild dword [esp + 0x18]
fmul qword [0x43d4c0]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x14]
mov dword [esi], eax
fmul qword [0x43d4c0]
call sub.MSVCRT.dll__ftol
jmp 0x412fc7
lea eax, [ebp + ebp*4]
lea edx, [eax + eax*4]
lea eax, [edi + edi*4]
shl edx, 2
lea eax, [eax + eax*4]
mov dword [esi], edx
shl eax, 2
mov dword [esi + 4], eax
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, esi
mov byte [esp + 0x38], 1
mov dword [ecx], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x18