Function at 0x4972c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d0638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x10]
add eax, 0x3e8
mov dword [esp + 0x24], ecx
add ecx, 0x3e8
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x28], eax
call sub.mfc42u.dll_CString::CString_3
mov eax, dword [0x6274d4]
mov ebx, dword [ebp + 0x18]
test eax, eax
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x38], 0
je 0x497354
add ecx, 0x980
call fcn.004b0a70
mov ecx, dword [ebx + 0x3c]
mov eax, dword [eax]
push eax
lea edx, [esp + 0x10]
mov ecx, dword [ecx + 0xa94]
push ecx
push 0x61df48
push edx
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
jmp 0x497374
add ecx, 0x980
call fcn.004b0a70
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x61df3c
push ecx
call sub.mfc42u.dll_CString::Format_1
add esp, 0xc
mov eax, dword [0x627480]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4973c8
mov ecx, dword [ebp + 8]
mov edx, dword [eax - 8]
lea ebx, [esp + 0x20]
push 0x520
mov esi, dword [ecx]
push ebx
push edx
push eax
call dword [esi + 0x70]
mov ecx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x20]
lea edx, [esi + esi*4]
lea eax, [eax + edx*2]
cmp ecx, eax
jg 0x4973b0
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x20]
lea eax, [edi + 0xe04]
push ecx
push eax
push eax
call dword [sym.imp.user32.dll_UnionRect]
jmp 0x4974c6
mov edi, dword [ebp + 8]
mov ecx, dword [eax - 8]
lea esi, [esp + 0x20]
push pe_nt_image_headers32
mov edx, dword [edi]
push esi
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x14]
mov esi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea eax, [esi + esi]
sub ecx, eax
add ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x497427
fld qword [ecx + 0x10]
fld qword [ecx + 0x18]
fcompp
fnstsw ax
test ah, 1
je 0x497420
fld qword [ecx + 0x10]
jmp 0x497423
fld qword [ecx + 0x18]
fstp qword [esp + 0x14]
mov eax, dword [0x6274b0]
test eax, eax
je 0x49748d
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1ec]
mov ecx, dword [eax]
cmp dword [ecx + 4], 1
jne 0x49748d
fld qword [esp + 0x14]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x41
jne 0x49748d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push 0
push edx
push eax
call fcn.004aab10
mov ecx, dword [eax]
mov edx, dword [ebp + 0x1c]
add esp, 0x10
push ecx
push edx
push 0x61df2c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x18]
push eax
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
jmp 0x4974ac
mov ecx, dword [ebp + 0x1c]
push ecx
push 0x617f60
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call sub.mfc42u.dll_CString::Format_1
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [edi]
lea ebx, [esp + 0x20]
push 0x122
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
mov eax, esi
lea ecx, [esp + 0xc]
cdq
sub eax, edx
mov dword [esp + 0x38], 0xffffffff
mov edi, eax
mov eax, dword [ebp + 0x10]
sar edi, 1
add edi, esi
add edi, eax
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18