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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52ceb2
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov esi, ecx
call fcn.004d44a0
test eax, eax
jne 0x4d1da1
mov ecx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x34]
push 0x3ec
push 0x43d
push eax
push ecx
call fcn.00472ce0
add esp, 0x14
xor eax, eax
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
fild dword [esi + 0x1dc]
fld dword [esi + 0x5c]
fadd dword [esi + 0x58]
push ebx
push ebp
push edi
fmul st(1)
call sub.MSVCRT.dll__ftol
fild dword [esi + 0x1e0]
mov edi, dword [esi + 0x1d4]
sub edi, eax
fstp dword [esp + 0x1c]
fld dword [esi + 0x64]
fadd dword [esi + 0x60]
fmul dword [esp + 0x1c]
call sub.MSVCRT.dll__ftol
fmul dword [esi + 0x58]
mov ebx, dword [esi + 0x1d8]
sub ebx, eax
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x1c]
fmul dword [esi + 0x60]
mov ebp, eax
mov dword [esp + 0x50], ebp
call sub.MSVCRT.dll__ftol
lea edx, [eax + ebx]
lea ecx, [edi + ebp]
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x264]
xor edi, edi
cmp eax, edi
je 0x4d1e2f
mov ebp, dword [esi + 0x268]
dec ebp
jmp 0x4d1e31
xor ebp, ebp
cmp eax, edi
je 0x4d1e51
mov eax, dword [esi + 0x1f4]
mov ecx, dword [esi + 0x26c]
cmp eax, ecx
jae 0x4d1e4b
mov dword [esp + 0x14], eax
jmp 0x4d1e5b
mov dword [esp + 0x14], ecx
jmp 0x4d1e5b
mov edx, dword [esi + 0x1f4]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
cmp ebp, eax
jge 0x4d2283
jmp 0x4d1e71
mov ebp, dword [esp + 0x1c]
lea eax, [ebp + 1]
mov dword [esp + 0x2c], eax
mov dword [esi + 0x1c8], eax
mov eax, dword [0x568d24]
cmp dword [eax], edi
jne 0x4d2283
mov eax, dword [esi + 0x10]
mov dword [esp + 0x20], edi
cmp eax, edi
jle 0x4d226f
jmp 0x4d1ea0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x4d222d
cmp ebp, dword [esi + 0x1f4]
jge 0x4d1ecd
cmp ebp, edi
jl 0x4d1ecd
mov edx, dword [esi + 0x1f0]
mov eax, dword [edx + ebp*4]
mov dword [esp + 0x10], eax
jmp 0x4d1ed1
mov dword [esp + 0x10], edi
cmp dword [esi + 0x194], edi
jbe 0x4d1ffc
mov al, byte [esi + 0x88]
test al, al
je 0x4d1ffc
mov ecx, dword [esi + 0x214]
mov edx, dword [esi + 0x38]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
call ebx
mov edx, dword [esi + 0x22c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
add edx, eax
lea eax, [esi + 0x18c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov cl, byte [eax]
mov dword [esp + 0x34], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push edi
push 1
push ebp
lea edx, [esp + 0x3c]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x9c], edi
call fcn.004d5450
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x38]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push ecx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x4d1f8f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esi + 0x220]
lea ecx, [esp + 0x60]
push edx
mov edx, dword [esi + 0x38]
push ecx
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x38]
push edx
push eax
call ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
cmp eax, edi
je 0x4d1fee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d1fe5
cmp al, 0xff
je 0x4d1fe5
dec al
mov byte [ecx], al
jmp 0x4d1fee
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
jmp 0x4d2008
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x1a4], edi
jbe 0x4d212c
mov al, byte [esi + 0x89]
test al, al
je 0x4d212c
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x38]
push ecx
push edx
call ebx
mov edx, dword [esi + 0x234]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
mov dword [esp + 0x7c], eax
sub ecx, edx
mov edx, dword [esp + 0x58]
lea eax, [esi + 0x19c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov cl, byte [eax]
mov dword [esp + 0x48], edi
mov byte [esp + 0x40], cl
mov dword [esp + 0x4c], edi
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push edi
push 1
push 1
lea edx, [esp + 0x4c]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x9c], 1
call fcn.004d5450
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x38]
push eax
push ecx
call ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
cmp eax, edi
jne 0x4d20c1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esi + 0x224]
lea ecx, [esp + 0x70]
push edx
mov edx, dword [esi + 0x38]
push ecx
push 0xffffffffffffffff
push eax
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x38]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x38]
push edx
push eax
call ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], 0xffffffff
cmp eax, edi
je 0x4d2120
mov cl, byte [eax - 1]
test cl, cl
je 0x4d2116
cmp cl, 0xff
je 0x4d2116
dec cl
mov byte [eax - 1], cl
jmp 0x4d2120
dec eax
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov eax, dword [edx + 8]
cmp eax, edi
jle 0x4d2209
jmp 0x4d2149
mov ecx, dword [esp + 0x18]
xor edi, edi
cmp ecx, eax
jge 0x4d215b
cmp ecx, edi
jl 0x4d215b
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov edi, dword [edx + ecx*4]
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x38]
push ecx
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push edi
mov ecx, esi
call fcn.004d4850
mov eax, dword [esi + 0x38]
push ebp
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [edi + 0x30]
test eax, eax
jbe 0x4d21ef
mov ecx, dword [esi + 0x210]
mov edx, dword [esi + 0x38]
push ecx
push edx
call ebx
mov ecx, dword [esi + 0x38]
mov ebp, eax
mov eax, dword [esi + 0x1c4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, eax
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4d21be
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [edi + 0x38]
add edi, 0x18
push edx
push edi
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esi + 0x38]
push ebx
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x38]
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x4d2143
xor edi, edi
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jl 0x4d2244
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4d1e9c
jmp 0x4d226f
mov ecx, dword [0x568d24]
call fcn.00484790
mov edx, dword [0x568d24]
cmp dword [edx], edi
jne 0x4d226f
jmp 0x4d2259
mov ecx, dword [0x568d24]
call fcn.00484790
mov edx, dword [0x568d24]
cmp dword [edx], edi
jne 0x4d226f
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push edi
push 0x3ec
push eax
push ecx
call fcn.00472e10
add esp, 0x10
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4d1e6d
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, esi
call fcn.004d45e0
mov ecx, dword [esp + 0x80]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret