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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d0856
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00432930
test al, al
jne 0x49a341
xor edi, edi
mov dword [esp + 0x24], 0x5e4054
mov dword [esp + 0x28], edi
push 0xac
push 2
push 0xac
mov dword [esp + 0xa0], edi
call sub.mfc42u.dll_AfxFindResourceHandle
push eax
call dword [sym.imp.user32.dll_LoadBitmapW]
push eax
lea ecx, [esp + 0x28]
call sub.mfc42u.dll_CGdiObject::Attach
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x54]
push eax
push 0x18
push ecx
call dword [sym.imp.gdi32.dll_GetObjectW]
lea ecx, [esp + 0x44]
call sub.mfc42u.dll_CDC::CDC
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x94], 1
cmp eax, edi
je 0x499b7c
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call sub.mfc42u.dll_CDC::Attach
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x4c]
push eax
call sub.mfc42u.dll_CDC::SelectGdiObject
mov ebp, dword [esp + 0x9c]
push 0x26
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
test al, 1
je 0x499ab4
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x44]
neg eax
mov ebx, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
sbb eax, eax
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0x60]
push edi
push edi
push eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [ebp + 4]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.gdi32.dll_BitBlt]
jmp 0x499abb
mov ebx, dword [esp + 0xac]
cmp dword [esi + 0x17c], edi
je 0x499c29
push 0x61dfe0
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.005c0fb0
mov eax, dword [esi + 0x1f0]
mov byte [esp + 0x94], 2
test eax, eax
jle 0x499b46
mov eax, dword [esi + 0x1ec]
mov ecx, dword [eax + edi*4]
add ecx, 0x1c
push ecx
lea ecx, [esp + 0x14]
call sub.mfc42u.dll_CString::operator_1
push 0x61dfdc
lea ecx, [esp + 0x18]
call sub.mfc42u.dll_CString::CString_2
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x98], 3
call sub.mfc42u.dll_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 2
call sub.mfc42u.dll_CString::CString
mov eax, dword [esi + 0x1f0]
inc edi
cmp edi, eax
jl 0x499af0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xa8]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp]
mov edx, dword [ecx - 8]
push edx
push ecx
push ebx
push eax
mov ecx, ebp
call dword [edi + 0x64]
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call sub.mfc42u.dll_CString::CString
jmp 0x499c29
mov ebp, dword [esp + 0x9c]
cmp ebp, edi
jne 0x499b8b
xor eax, eax
jmp 0x499b8e
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x48]
call sub.mfc42u.dll_CDC::Attach
cmp eax, edi
je 0x499c22
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x48]
push eax
push edx
call sub.mfc42u.dll_CDC::SelectGdiObject
mov ebx, eax
mov eax, dword [esp + 0x5c]
cdq
sub eax, edx
lea ecx, [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x58]
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar edi, 1
sar eax, 1
neg ecx
sbb ecx, ecx
push 0xcc0020
and ecx, edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 4]
push 0
push 0
push ecx
mov ecx, dword [esp + 0xc0]
push edi
push eax
mov eax, dword [esp + 0xcc]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_StretchBlt]
test ebx, ebx
je 0x499c17
mov ebx, dword [ebx + 4]
mov eax, dword [esp + 0x48]
push ebx
push eax
call sub.mfc42u.dll_CDC::SelectGdiObject
mov ebx, dword [esp + 0xac]
fild dword [esp + 0x5c]
fmul qword [0x5e3e18]
call sub.msvcrt.dll__ftol
mov edx, dword [esp + 0xa4]
add ebx, eax
mov dword [esp + 0xac], ebx
lea eax, [edx - 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x17c]
test eax, eax
je 0x499dc4
mov eax, dword [esi + 0xbf4]
mov ecx, edx
shl ecx, 7
lea eax, [eax + ecx - 0x80]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0xc]
mov edi, dword [esi + ecx*4 + 0xc04]
mov ecx, dword [eax + 4]
mov dword [0x627480], ecx
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x14], edi
jne 0x499d07
push 1
push ecx
push edi
lea ecx, [esi + 0x190]
call fcn.004f8150
push eax
mov ecx, esi
call fcn.00430450
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xa8]
add edx, 0x20
push edx
push 1
push edi
mov edx, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
push ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.0049a3a0
mov ecx, dword [0x627480]
mov edx, dword [esp + 0xa4]
sub eax, 0x14
mov dword [0x627334], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [0x627334]
jmp 0x499e48
cmp ecx, 2
jne 0x499da8
push 1
push 0
push edi
lea ecx, [esi + 0x190]
call fcn.004f8150
push eax
mov ecx, esi
call fcn.00430450
mov eax, dword [esp + 0x10]
mov edx, dword [0x627484]
add eax, 0x20
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xa8]
push eax
push 1
push edi
sub esp, 0x10
mov eax, dword [esp + 0xcc]
mov ecx, esp
mov edi, dword [esp + 0xd0]
push ebp
mov dword [0x627484], 1
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, esi
call fcn.0049a3a0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa4]
sub edi, ebx
mov dword [0x627484], ecx
mov ecx, dword [0x627480]
sub edi, 0x14
mov dword [0x627334], edi
mov dword [eax + 4], ecx
mov ecx, dword [0x627334]
jmp 0x499e48
xor ecx, ecx
mov dword [0x627334], ecx
mov dword [0x627480], ecx
mov dword [eax + 4], ecx
mov ecx, dword [0x627334]
jmp 0x499e48
cmp edx, 1
jne 0x499db9
push 0
push 0
lea ecx, [esi + 0x2e0]
call fcn.004dfab0
push eax
mov ecx, esi
call fcn.00430450
mov edx, dword [esi + 0xbf4]
mov ecx, dword [esp + 0xa8]
add edx, 0x20
push edx
push 1
push 0xffffffffffffffff
mov edx, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
push ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.0049a3a0
mov ecx, eax
mov eax, dword [0x627484]
sub ecx, 0x14
test eax, eax
mov dword [0x627334], ecx
je 0x499e41
mov ecx, dword [esp + 0xb4]
sub ecx, ebx
sub ecx, 0x14
mov dword [0x627334], ecx
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x40], edi
mov edi, dword [esi + 0x17c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
test edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
je 0x49a26a
mov ecx, dword [esi + 0xbf4]
shl edx, 7
mov eax, dword [ecx + edx - 0x80]
lea edi, [ecx + edx - 0x80]
cmp eax, 2
je 0x49a314
xor edx, edx
cmp eax, edx
jne 0x49a017
lea ecx, [esp + 0x6c]
call fcn.004b6ca0
mov eax, dword [esi + 0x800]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x94], 4
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
jle 0x499f0c
mov edx, dword [esi + 0x7fc]
mov eax, dword [edx + ebx*4]
mov edx, dword [edi + 0xc]
mov ecx, dword [eax + 0x148]
cmp ecx, edx
jne 0x499f01
add eax, 0x170
lea ecx, [esp + 0x6c]
push eax
call fcn.004b6dd0
mov eax, dword [esi + 0x800]
inc ebx
cmp ebx, eax
jl 0x499edc
mov edx, dword [esp + 0x14]
lea ebx, [esi + 0x190]
push edx
mov ecx, ebx
call fcn.004f8150
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x499f54
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x499f54
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x499f57
fld qword [ecx + 0x18]
fcomp qword [esp + 0x84]
fnstsw ax
test ah, 1
jne 0x499fb1
mov eax, dword [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004f8150
mov ecx, eax
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x499fa7
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x499fa7
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x499faa
fld qword [ecx + 0x18]
fstp qword [esp + 0x84]
mov ecx, dword [0x627334]
mov edx, dword [esp + 0x38]
add edx, ecx
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, 0x627438
mov dword [esp + 0x48], edx
call fcn.004a2810
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
push ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0049c3b0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x94], 1
call fcn.0042bd50
jmp 0x49a314
cmp eax, 1
jne 0x49a1ed
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x5e3de0
mov eax, dword [0x627490]
lea ecx, [esp + 0x2c]
push eax
push ebp
push ecx
mov byte [esp + 0xa0], 5
mov dword [esp + 0x28], edx
call fcn.004a2d00
add esp, 0xc
test eax, eax
je 0x49a061
mov edx, dword [ebp]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xb4]
mov ecx, dword [0x627438]
sub eax, ebx
cdq
idiv dword [0x62743c]
mov dword [esp + 0x20], eax
xor eax, eax
and ecx, 0x80000001
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
jns 0x49a092
dec ecx
or ecx, 0xfffffffe
inc ecx
inc ecx
test ecx, ecx
jle 0x49a1be
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 8]
cmp edx, eax
mov dword [esp + 0x14], 0
jge 0x49a17a
mov eax, ebx
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x38], ebx
lea ebx, [edx + eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebx
mov edx, dword [edi + 0xc]
lea eax, [esp + 0x34]
add ecx, edx
push eax
mov edx, dword [esi + ecx*4 + 0xc04]
mov ecx, esi
push edx
push ebp
call fcn.00498f80
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
sub esp, 0x10
mov ecx, esp
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0049c3b0
mov ecx, dword [esp + 0x14]
mov edx, dword [0x62743c]
inc ecx
mov eax, ebx
cmp ecx, edx
mov dword [esp + 0x14], ecx
je 0x49a16a
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 8]
mov ebx, dword [esp + 0xac]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x49a0b4
jmp 0x49a17a
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xac]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa8]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [0x627438]
sar eax, 1
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x18]
inc eax
and edx, 0x80000001
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x18], eax
jns 0x49a1b5
dec edx
or edx, 0xfffffffe
inc edx
inc edx
cmp eax, edx
jl 0x49a09b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49a1cf
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov dword [esp + 0x2c], 0x5e3df4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 6
call sub.mfc42u.dll_CGdiObject::DeleteObject
jmp 0x49a314
mov ecx, dword [edi + 8]
xor ebx, ebx
cmp ecx, edx
jle 0x49a314
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov dword [esp + 0x40], eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
push ecx
push edx
mov edx, dword [edi + 0x10]
mov ecx, ebx
add ecx, edx
mov edx, ebx
push ecx
mov ecx, dword [edi + 0xc]
add edx, ecx
push edx
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov ecx, esp
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0049c5b0
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x14]
add ecx, eax
inc ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
cmp ebx, ecx
jl 0x49a205
jmp 0x49a314
mov edi, dword [0x627484]
test edi, edi
je 0x49a2eb
cmp edx, 1
jle 0x49a2c4
mov eax, dword [esp + 0xb4]
sub eax, ecx
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
mov edi, eax
sar edi, 1
add edi, ebx
mov dword [esp + 0x38], edi
lea eax, [edi + edx]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
sar eax, 1
sub esp, 0x10
mov dword [esp + 0x50], eax
mov ecx, esp
push 0
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x34]
push eax
jmp 0x49a30c
mov ecx, dword [esp + 0xa8]
push ebx
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, ebp
call sub.mfc42u.dll_CDC::MoveTo
mov eax, dword [esp + 0xb0]
push ebx
push eax
mov ecx, ebp
call sub.mfc42u.dll_CDC::LineTo
jmp 0x49a314
mov edi, dword [esp + 0x34]
add ebx, ecx
sub esp, 0x10
mov dword [esp + 0x50], ebx
mov ecx, esp
push 0
push edx
mov dword [ecx], edi
mov edi, dword [esp + 0x50]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
push ebp
mov ecx, esi
call fcn.0049bb20
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 0
call fcn.005c100a
mov dword [esp + 0x24], 0x5e3df4
lea ecx, [esp + 0x24]
mov dword [esp + 0x94], 7
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 0x1c