Function at 0x501790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd714
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x55b090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.mfc140u.dll_CDialog::OnInitDialog]
call fcn.0050aa00
mov dword [edi + 0xce8], eax
call fcn.0041d970
push pe_nt_image_headers32
lea eax, [ebp - 0x520]
movss dword [edi + 0xcec], xmm0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x524], 0x114
lea ecx, [ebp - 0x524]
call fcn.004fc980
cmp dword [ebp - 0x520], 5
ja 0x501830
mov esi, dword [edi + 0x20]
mov edx, 0xffffffec
mov ecx, esi
call fcn.004b2890
and eax, 0xfff7ffff
mov ecx, esi
push eax
call fcn.0050cb70
add esp, 4
push 0x44c
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CWnd::GetDlgItem]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x50189d
push eax
lea ecx, [edi + 0xcc]
call fcn.0045aad0
mov edx, 0x51a65c
lea ecx, [ebp - 0x528]
call fcn.004c6fd0
mov dword [ebp - 4], 0
lea ecx, [edi + 0xcc]
push dword [eax]
push 0xf2
call fcn.0043e780
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x50189d
lea ecx, [edi + 0xcc]
call fcn.0041cb60
push 0
push ecx
lea edx, [edi + 0xcc]
neg edx
lea eax, [edi + 0xd0]
push 0
push ecx
push dword [edi + 0xce8]
sbb edx, edx
mov ecx, edi
and edx, eax
call fcn.00444150
mov esi, dword [sym.imp.mfc140u.dll_CWnd::GetDlgItem]
add esp, 0x14
mov ecx, edi
push 0x44e
call esi
mov eax, dword [eax + 0x20]
test eax, eax
je 0x50193a
push eax
lea ecx, [edi + 0x168]
call fcn.0045aad0
mov edx, 0x51a65c
lea ecx, [ebp - 0x528]
call fcn.004c6fd0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x168]
push dword [eax]
push 0xf3
call fcn.0043e780
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x501934
lea ecx, [edi + 0x168]
call fcn.0041cb60
mov esi, dword [sym.imp.mfc140u.dll_CWnd::GetDlgItem]
push 0
push ecx
lea edx, [edi + 0x168]
neg edx
lea eax, [edi + 0x16c]
push 0
push ecx
push dword [edi + 0xce8]
sbb edx, edx
mov ecx, edi
and edx, eax
call fcn.00444150
add esp, 0x14
cmp dword [edi + 0xce8], 0x64
je 0x501979
push 0
push dword [edi + 0x16c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x453
mov ecx, edi
call esi
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5019e2
push eax
lea ecx, [edi + 0x204]
call fcn.0045aad0
mov edx, 0x51a65c
lea ecx, [ebp - 0x528]
call fcn.004c6fd0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x204]
push dword [eax]
push 0xfa
call fcn.0043e780
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x5019e2
lea ecx, [edi + 0x204]
call fcn.0041cb60
push 0
push ecx
lea edx, [edi + 0x204]
neg edx
lea eax, [edi + 0x208]
push 0
push ecx
push dword [edi + 0xce8]
sbb edx, edx
mov ecx, edi
and edx, eax
call fcn.00444150
add esp, 0x14
mov ecx, edi
push 0x472
call dword [sym.imp.mfc140u.dll_CWnd::GetDlgItem]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x501a77
push eax
lea ecx, [edi + 0x2a0]
call fcn.0045aad0
mov edx, 0x51a65c
lea ecx, [ebp - 0x528]
call fcn.004c6fd0
mov dword [ebp - 4], 3
lea ecx, [edi + 0x2a0]
push dword [eax]
push 0x116
call fcn.0043e780
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x501a77
lea ecx, [edi + 0x2a0]
call fcn.0041cb60
push 0
push ecx
lea edx, [edi + 0x2a0]
neg edx
lea eax, [edi + 0x2a4]
push 0
push ecx
push dword [edi + 0xce8]
sbb edx, edx
mov ecx, edi
and edx, eax
call fcn.00444150
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51a670
call fcn.004c6fd0
push 0x64
mov dword [ebp - 4], 4
lea ecx, [edi + 0x340]
push eax
mov eax, dword [edi + 0x340]
call dword [eax + 0x18c]
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
lea ecx, [edi + 0x340]
mulss xmm0, dword [0x536f18]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x536e90]
cvttsd2si eax, xmm0
push eax
mov eax, dword [edi + 0x340]
mov eax, dword [eax + 0x198]
call eax
mov esi, eax
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
cmp eax, vtable.CLabel.0
jne 0x502311
mov dword [esi + 0x80], 0xcd781f
call fcn.004252d0
mov ecx, dword [esi]
push 0
push 0
push 0
mov edx, dword [ecx + 0x174]
mov ecx, esi
call edx
mov esi, eax
mov ecx, dword [esi]
cmp ecx, vtable.CLabel.0
mov eax, dword [ecx + 0x1a4]
mov ecx, esi
jne 0x50231f
push 0
push 0x20
push 0
mov dword [esi + 0x100], 1
call dword [sym.imp.mfc140u.dll_CWnd::ModifyStyleEx]
mov ecx, esi
call fcn.004252d0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0x340]
mov ecx, edi
call fcn.00421de0
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51a670
call fcn.004c6fd0
push 0x64
mov dword [ebp - 4], 5
lea ecx, [edi + 0x478]
push eax
mov eax, dword [edi + 0x478]
call dword [eax + 0x18c]
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
lea ecx, [edi + 0x478]
mulss xmm0, dword [0x536f04]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x536e90]
cvttsd2si eax, xmm0
push eax
mov eax, dword [edi + 0x478]
mov eax, dword [eax + 0x198]
call eax
mov esi, eax
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
cmp eax, vtable.CLabel.0
jne 0x502328
mov dword [esi + 0x80], 0x7f7f80
call fcn.004252d0
mov ecx, dword [esi]
push 0
push 0
push 0
mov edx, dword [ecx + 0x174]
mov ecx, esi
call edx
mov esi, eax
mov ecx, dword [esi]
cmp ecx, vtable.CLabel.0
mov eax, dword [ecx + 0x1a4]
mov ecx, esi
jne 0x502336
push 0
push 0x20
push 0
mov dword [esi + 0x100], 1
call dword [sym.imp.mfc140u.dll_CWnd::ModifyStyleEx]
mov ecx, esi
call fcn.004252d0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0x478]
mov ecx, edi
call fcn.00421de0
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51a6a0
call fcn.004c6fd0
push 0x64
mov dword [ebp - 4], 6
lea ecx, [edi + 0x5b0]
push eax
mov eax, dword [edi + 0x5b0]
call dword [eax + 0x18c]
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
lea ecx, [edi + 0x5b0]
mulss xmm0, dword [0x536ef4]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x536e90]
cvttsd2si eax, xmm0
push eax
mov eax, dword [edi + 0x5b0]
mov eax, dword [eax + 0x198]
call eax
mov esi, eax
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
cmp eax, vtable.CLabel.0
jne 0x50233f
mov dword [esi + 0x80], 0x7f7f80
call fcn.004252d0
mov ecx, dword [esi]
push 0
push 0
push 0
mov edx, dword [ecx + 0x174]
mov ecx, esi
call edx
mov esi, eax
mov ecx, dword [esi]
cmp ecx, vtable.CLabel.0
mov eax, dword [ecx + 0x1a4]
mov ecx, esi
jne 0x50234d
push 0
push 0x20
push 0
mov dword [esi + 0x100], 1
call dword [sym.imp.mfc140u.dll_CWnd::ModifyStyleEx]
mov ecx, esi
call fcn.004252d0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0x5b0]
mov ecx, edi
call fcn.00421de0
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51a6a0
call fcn.004c6fd0
push 0x64
mov dword [ebp - 4], 7
lea ecx, [edi + 0x6e8]
push eax
mov eax, dword [edi + 0x6e8]
call dword [eax + 0x18c]
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
lea ecx, [edi + 0x6e8]
mulss xmm0, dword [0x536ef4]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x536e90]
cvttsd2si eax, xmm0
push eax
mov eax, dword [edi + 0x6e8]
mov eax, dword [eax + 0x198]
call eax
mov esi, eax
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
cmp eax, vtable.CLabel.0
jne 0x502356
mov dword [esi + 0x80], 0x7f7f80
call fcn.004252d0
mov ecx, dword [esi]
push 0
push 0
push 0
mov edx, dword [ecx + 0x174]
mov ecx, esi
call edx
mov esi, eax
mov ecx, dword [esi]
cmp ecx, vtable.CLabel.0
mov eax, dword [ecx + 0x1a4]
mov ecx, esi
jne 0x502364
push 0
push 0x20
push 0
mov dword [esi + 0x100], 1
call dword [sym.imp.mfc140u.dll_CWnd::ModifyStyleEx]
mov ecx, esi
call fcn.004252d0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0x6e8]
mov ecx, edi
call fcn.00421de0
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51a6a0
call fcn.004c6fd0
push 0x64
mov dword [ebp - 4], 8
lea ecx, [edi + 0x820]
push eax
mov eax, dword [edi + 0x820]
call dword [eax + 0x18c]
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
lea ecx, [edi + 0x820]
mulss xmm0, dword [0x536ef4]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x536e90]
cvttsd2si eax, xmm0
push eax
mov eax, dword [edi + 0x820]
mov eax, dword [eax + 0x198]
call eax
mov esi, eax
mov ecx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x178]
cmp eax, vtable.CLabel.0
jne 0x50236d
mov dword [esi + 0x80], 0x7f7f80
call fcn.004252d0
mov ecx, dword [esi]
push 0
push 0
push 0
mov edx, dword [ecx + 0x174]
mov ecx, esi
call edx
mov esi, eax
mov ecx, dword [esi]
cmp ecx, vtable.CLabel.0
mov eax, dword [ecx + 0x1a4]
mov ecx, esi
jne 0x50237b
push 0
push 0x20
push 0
mov dword [esi + 0x100], 1
call dword [sym.imp.mfc140u.dll_CWnd::ModifyStyleEx]
mov ecx, esi
call fcn.004252d0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0x820]
mov ecx, edi
call fcn.00421de0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x20
lea ecx, [ebp - 0x528]
mov edx, 0x51adb0
call fcn.004c6fd0
push 0x200
lea ecx, [ebp - 0x410]
mov dword [ebp - 4], 9
push ecx
push dword [eax]
mov ecx, 0x56d704
lea esi, [edi + 0x958]
call fcn.004b3ed0
push eax
mov ecx, esi
call fcn.00433ee0
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
mov ecx, esi
mulss xmm0, dword [0x536ef8]
mov dword [edi + 0x9dc], 0x25
mov dword [edi + 0x9e0], 0x19
cvttss2si eax, xmm0
push eax
call fcn.004c6e30
mov edx, 0x51a670
mov dword [edi + 0x9ec], 0xcd781f
lea ecx, [ebp - 0x528]
mov dword [edi + 0x9f0], 0xcd781f
mov dword [edi + 0x9f4], 0xcd781f
call fcn.004c6fd0
mov dword [ebp - 4], 0xa
mov ecx, esi
push dword [eax]
call fcn.00408cf0
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x2bc
mov ecx, esi
call fcn.004aaf40
push 0xf9
push 0xf8
push 0xf7
mov ecx, esi
mov dword [edi + 0xa08], 0
call fcn.00433d70
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
mov edx, esi
mov ecx, edi
call fcn.00421de0
add esp, 0x14
lea ecx, [ebp - 0x528]
mov edx, 0x51add0
call fcn.004c6fd0
push 0x200
lea edx, [ebp - 0x410]
mov dword [ebp - 4], 0xb
push edx
push dword [eax]
mov ecx, 0x56d704
call fcn.004b3ed0
push eax
lea ecx, [edi + 0xb20]
call fcn.00433ee0
lea ecx, [ebp - 0x528]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edx, 0x51a990
mov dword [edi + 0xba4], 0x25
lea ecx, [ebp - 0x530]
call fcn.004c6fd0
mov dword [ebp - 0x52c], eax
mov dword [ebp - 4], 0xc
mov esi, dword [0x56d744]
cmp esi, dword [0x56d710]
jge 0x502151
cmp esi, 0xffffffff
jle 0x502151
mov eax, dword [0x56d704]
mov esi, dword [eax + esi*4]
jmp 0x50216f
mov edx, 0x525c20
lea ecx, [ebp - 0x528]
call fcn.004c6fd0
lea ecx, [ebp - 0x528]
mov esi, dword [eax]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x52c]
mov eax, dword [eax]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x50219d
test cx, cx
je 0x502199
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x50219d
add eax, 4
add esi, 4
test cx, cx
jne 0x502177
xor esi, esi
jmp 0x5021a2
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x530]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movss xmm0, dword [edi + 0xcec]
test esi, esi
lea esi, [edi + 0xb20]
mov ecx, esi
jne 0x5021d3
mulss xmm0, dword [0x536ef4]
jmp 0x5021db
mulss xmm0, dword [0x536ef8]
cvttss2si eax, xmm0
push eax
call fcn.004c6e30
mov edx, 0x51a670
mov dword [edi + 0xbb4], 0xcd781f
lea ecx, [ebp - 0x530]
mov dword [edi + 0xbb8], 0xcd781f
mov dword [edi + 0xbbc], 0xcd781f
call fcn.004c6fd0
mov dword [ebp - 4], 0xd
mov ecx, esi
push dword [eax]
call fcn.00408cf0
lea ecx, [ebp - 0x530]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x2bc
mov ecx, esi
call fcn.004aaf40
push 0xfd
push 0xfc
push 0xfb
mov ecx, esi
mov dword [edi + 0xbd0], 0
call fcn.00433d70
push 0
push 0x14
push 0
push 0x14
push dword [edi + 0xce8]
mov edx, esi
mov ecx, edi
call fcn.00421de0
push 0
push 0
push 0
push 0
push dword [edi + 0xce8]
lea edx, [edi + 0xcf8]
mov ecx, edi
call fcn.00421de0
add esp, 0x28
mov ecx, 0x56d658
call fcn.004cfd50
push eax
lea ecx, [ebp - 0x52c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
mov dword [ebp - 4], 0xe
mov edx, dword [eax]
mov ecx, dword [edi + 0xd18]
call fcn.004f6650
lea ecx, [ebp - 0x52c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, edi
call fcn.00422300
mov ecx, 0x56d130
call fcn.0043c8f0
test al, al
jne 0x5022f1
mov ecx, edi
call fcn.004b3730
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482396
mov esp, ebp
pop ebp
ret
push 0xcd781f
call edx
mov esi, eax
jmp 0x501b38
push 1
call eax
jmp 0x501b7f
push 0x7f7f80
call edx
mov esi, eax
jmp 0x501c36
push 1
call eax
jmp 0x501c7d
push 0x7f7f80
call edx
mov esi, eax
jmp 0x501d34
push 1
call eax
jmp 0x501d7b
push 0x7f7f80
call edx
mov esi, eax
jmp 0x501e32
push 1
call eax
jmp 0x501e79
push 0x7f7f80
call edx
mov esi, eax
jmp 0x501f30
push 1
call eax
jmp 0x501f77