Function at 0x406db0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c2e37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
call fcn.0043d980
lea ecx, [esp + 0xd0]
call fcn.0040aea0
xor edi, edi
lea ecx, [esp + 0xe4]
mov dword [esp + 0x3e0], edi
call fcn.0040af20
lea ecx, [esp + 0xf8]
mov byte [esp + 0x3e0], 1
call fcn.0040afa0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x3e0], 2
call fcn.0040abe0
lea ecx, [esp + 0x120]
mov byte [esp + 0x3e0], 3
call fcn.0040b330
lea ecx, [esp + 0x134]
mov byte [esp + 0x3e0], 4
call fcn.0040b6d0
lea ecx, [esp + 0x148]
mov byte [esp + 0x3e0], 5
call fcn.0040bae0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x170]
cmp ebx, 2
mov dword [esp + 0x4c], ecx
setne al
lea ecx, [esp + 0xb0]
mov dword [esp + 0x3e0], 6
mov byte [esp + 0x178], al
mov dword [esi + 0x170], edi
call fcn.004b6ca0
mov dword [esp + 0x18], 0x5e2860
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], 0x5e2838
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
cmp ebx, 1
mov byte [esp + 0x3e0], 9
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
jne 0x407144
mov ecx, dword [esi + 0xb20]
lea ebx, [esi + 0xb18]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0xc], eax
jle 0x406f1b
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
cmp ecx, edi
je 0x406f0f
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x406efa
push 0xa
push edi
mov ecx, ebx
call fcn.0046d900
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.004037e0
lea edx, [esp + 0x30]
lea ecx, [esp + 0xd0]
push edx
call fcn.00403a00
lea eax, [esp + 0xb0]
lea ecx, [esp + 0x10c]
push eax
push ecx
call fcn.0050b890
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0xcc]
add esp, 8
mov esi, ecx
cmp ecx, edi
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], esi
jne 0x406fcb
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x406fbc
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x406fa4
lea ebx, [eax]
push edi
mov ecx, esi
call fcn.0040d490
add esi, 0x50
dec ebx
jne 0x406f96
mov ecx, dword [esp + 0x1c]
push ecx
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x118]
add esp, 4
mov dword [esp + 0x1c], edi
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
jmp 0x40710c
mov edx, dword [esp + 0x1c]
cmp edx, edi
jne 0x407003
lea edx, [ecx + ecx*4]
shl edx, 4
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
push esi
push eax
call fcn.0040ceb0
mov ecx, dword [esp + 0x114]
mov eax, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
jmp 0x40710c
mov ebx, dword [esp + 0x24]
cmp ecx, ebx
jg 0x40705b
mov eax, dword [esp + 0x20]
cmp eax, ecx
jge 0x407036
sub ecx, eax
lea eax, [eax + eax*4]
shl eax, 4
add eax, edx
push ecx
push eax
call fcn.0040ceb0
mov ecx, dword [esp + 0x114]
mov eax, esi
mov dword [esp + 0x20], eax
jmp 0x40710c
jle 0x407050
sub eax, ecx
lea ecx, [ecx + ecx*4]
shl ecx, 4
add ecx, edx
push eax
push ecx
call fcn.0040ce80
mov ecx, dword [esp + 0x114]
mov eax, esi
mov dword [esp + 0x20], eax
jmp 0x40710c
mov eax, dword [esp + 0x28]
cmp eax, edi
jne 0x407088
mov eax, dword [esp + 0x20]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40707c
mov eax, 4
jmp 0x407088
cmp eax, 0x400
jle 0x407088
mov eax, 0x400
add eax, ebx
cmp ecx, eax
mov dword [esp + 0xc], eax
jl 0x407096
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*4]
shl edx, 4
push edx
call sub.mfc42u.dll_operatornew
mov ebx, eax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov edi, ebx
lea ecx, [eax + eax*4]
add esp, 4
shl ecx, 4
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x44]
mov ecx, esi
lea edx, [eax + eax*4]
sub ecx, eax
shl edx, 4
add edx, ebx
push ecx
push edx
call fcn.0040ceb0
mov eax, dword [esp + 0x1c]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x10]
mov eax, esi
add esp, 4
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
xor edi, edi
xor esi, esi
cmp eax, edi
jle 0x4071e9
xor edi, edi
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x1c]
add ecx, edi
mov eax, dword [edx + esi*4]
add eax, 0x2d0
push eax
call fcn.004b7e20
mov eax, dword [esp + 0x20]
inc esi
add edi, 0x50
cmp esi, eax
jl 0x407118
jmp 0x4071e2
cmp dword [ebp + 8], 2
jne 0x4071bb
mov ecx, dword [esi + 0xb20]
lea ebx, [esi + 0xb18]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0xc], eax
jle 0x407181
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
cmp ecx, edi
je 0x407175
mov eax, dword [ecx]
push 1
call dword [eax + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x407160
push 0xa
push edi
mov ecx, ebx
call fcn.0046d900
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.004037e0
mov edx, dword [esp + 0x110]
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040c9d0
mov ecx, dword [esp + 0x114]
jmp 0x4071f0
mov ecx, esi
call fcn.00403590
lea ecx, [esp + 0x10c]
push ecx
mov ecx, esi
call fcn.004037e0
lea edx, [esp + 0x30]
lea ecx, [esp + 0xd0]
push edx
call fcn.00403a00
mov ecx, dword [esp + 0x114]
mov eax, dword [ebp + 8]
test eax, eax
je 0x407208
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0x40590000
jmp 0x40721e
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0x3ff00000
xor esi, esi
mov dword [esp + 0x44], 0
test ecx, ecx
mov dword [esp + 0x48], 0
jle 0x407257
mov eax, dword [esp + 0x110]
mov ecx, dword [eax + esi*4]
call fcn.0050b080
fadd qword [esp + 0x44]
mov eax, dword [esp + 0x114]
inc esi
cmp esi, eax
fstp qword [esp + 0x44]
jl 0x407234
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
test eax, eax
mov dword [ecx + 0x170], edx
jne 0x40736c
push 0
call fcn.00440af0
mov dword [esp + 0x30], 0x5e2838
mov eax, dword [esp + 0x34]
mov byte [esp + 0x3e0], 0xa
test eax, eax
je 0x407299
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ebx, 0x5e262c
mov dword [esp + 0x18], 0x5e2860
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x3e0], 0xb
test edi, edi
je 0x4072e0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4072d7
lea esi, [eax]
push 0
mov ecx, edi
call fcn.0040d490
add edi, 0x50
dec esi
jne 0x4072c4
mov edi, dword [esp + 0x1c]
push edi
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0x148]
mov dword [esp + 0x3e0], 0x11
call fcn.0040bb00
lea ecx, [esp + 0x134]
mov byte [esp + 0x3e0], 0x10
call fcn.0040b880
lea ecx, [esp + 0x120]
mov byte [esp + 0x3e0], 0xf
call fcn.0040b4b0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x3e0], 0xe
call fcn.0040ac00
lea ecx, [esp + 0xf8]
mov byte [esp + 0x3e0], 0xd
call fcn.0040b120
mov byte [esp + 0x3e0], 0xc
jmp 0x4079ad
mov eax, dword [esp + 0x2c]
lea edi, [eax + 0x2e0]
mov ecx, edi
call fcn.004dfab0
mov ebx, eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x4c], ebx
call fcn.0040a850
mov ecx, edi
mov byte [esp + 0x3e0], 0x12
call fcn.004dfab0
mov ecx, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0xc], ecx
push 4
mov edx, dword [eax + 0x1c]
push esi
lea ecx, [esp + 0x8c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
call fcn.004e5b10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.0040a870
mov ecx, edi
call fcn.004e3060
test al, al
je 0x407870
cmp dword [ebp + 8], 2
jne 0x407467
mov edi, 0x5e27fc
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
lea edx, [esp + 0x120]
lea eax, [esp + 0x50]
push edx
push esi
push esi
push esi
push eax
mov byte [esp + 0x3f4], 0x13
call fcn.004057b0
add esp, 0x14
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x3e0], 0x14
cmp eax, esi
je 0x407458
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov byte [esp + 0x3e0], 0x12
xor edi, edi
jmp 0x407b8a
push esi
lea ecx, [esp + 0x1b4]
call fcn.004a3570
mov ecx, dword [esp + 0x8c]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x254]
mov byte [esp + 0x3e8], 0x15
call fcn.004e5b10
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x250]
cmp edx, esi
je 0x4074be
mov ebx, dword [ecx]
add ecx, 8
mov dword [eax], ebx
mov ebx, dword [ecx - 4]
mov dword [eax + 4], ebx
add eax, 8
dec edx
jne 0x4074ab
lea edx, [esp + 0x238]
mov ecx, edi
push edx
mov byte [esp + 0x264], 1
mov byte [esp + 0x265], 1
call fcn.004e3ae0
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x218]
call fcn.0046d900
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x214]
cmp edx, esi
je 0x407510
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x407503
lea ecx, [esp + 0x1b0]
call sub.mfc42u.dll_CDialog::DoModal
cmp eax, 1
je 0x4076f1
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00440af0
lea ecx, [esp + 0x35c]
mov byte [esp + 0x3e0], 0x1e
call fcn.0040acc0
lea ecx, [esp + 0x354]
mov byte [esp + 0x3e0], 0x1d
call fcn.00408050
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x3e0], 0x1c
call sub.mfc42u.dll_CComboBox::CComboBox
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3e0], 0x1b
call sub.mfc42u.dll_CComboBox::CComboBox
lea ecx, [esp + 0x264]
mov byte [esp + 0x3e0], 0x1a
call fcn.0046b4d0
lea ecx, [esp + 0x24c]
mov byte [esp + 0x3e0], 0x19
call fcn.0040a9d0
lea ecx, [esp + 0x238]
mov byte [esp + 0x3e0], 0x18
call fcn.0040ac60
lea ecx, [esp + 0x224]
mov byte [esp + 0x3e0], 0x17
call fcn.0040a7f0
lea ecx, [esp + 0x210]
mov byte [esp + 0x3e0], 0x16
call fcn.0040ac00
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x3e0], 0x12
call fcn.005c0d94
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e0], 9
call fcn.0040a9d0
mov dword [esp + 0x30], 0x5e2838
mov eax, dword [esp + 0x34]
mov byte [esp + 0x3e0], 0x1f
cmp eax, esi
je 0x40762c
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5e262c
mov dword [esp + 0x18], 0x5e2860
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x3e0], 0x20
cmp eax, esi
je 0x407665
mov ecx, dword [esp + 0x20]
push ecx
push eax
call fcn.0040ce80
mov edx, dword [esp + 0x1c]
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], edi
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0x148]
mov dword [esp + 0x3e0], 0x26
call fcn.0040bb00
lea ecx, [esp + 0x134]
mov byte [esp + 0x3e0], 0x25
call fcn.0040b880
lea ecx, [esp + 0x120]
mov byte [esp + 0x3e0], 0x24
call fcn.0040b4b0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x3e0], 0x23
call fcn.0040ac00
lea ecx, [esp + 0xf8]
mov byte [esp + 0x3e0], 0x22
call fcn.0040b120
mov byte [esp + 0x3e0], 0x21
jmp 0x4079ad
mov eax, dword [esp + 0x328]
mov ecx, dword [esp + 0x334]
fild dword [esp + 0x330]
lea eax, [eax + eax*2]
mov edx, dword [esp + 0x338]
mov dword [esp + 0x70], ecx
push 0xffffffffffffffff
fmul qword [0x5e27e0]
lea eax, [eax + eax*4]
lea ecx, [esp + 0x88]
shl eax, 2
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x258]
fstp qword [esp + 0x80]
push eax
mov dword [esp + 0x7c], edx
call fcn.004e5b10
mov edx, dword [esp + 0x254]
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x88]
cmp edx, esi
je 0x407771
mov edi, dword [ecx]
add ecx, 8
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x40775e
mov edx, dword [esp + 0x344]
mov eax, dword [esp + 0x340]
lea ecx, [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x330]
push edx
push eax
lea edx, [esp + 0x230]
push ecx
push edx
call fcn.004057b0
add esp, 0x14
lea ecx, [esp + 0x35c]
mov byte [esp + 0x3e0], 0x2f
call fcn.0040acc0
lea ecx, [esp + 0x354]
mov byte [esp + 0x3e0], 0x2e
call fcn.00408050
lea ecx, [esp + 0x2e8]
mov byte [esp + 0x3e0], 0x2d
call sub.mfc42u.dll_CComboBox::CComboBox
lea ecx, [esp + 0x2a8]
mov byte [esp + 0x3e0], 0x2c
call sub.mfc42u.dll_CComboBox::CComboBox
lea ecx, [esp + 0x264]
mov byte [esp + 0x3e0], 0x2b
call fcn.0046b4d0
lea ecx, [esp + 0x24c]
mov byte [esp + 0x3e0], 0x2a
call fcn.0040a9d0
lea ecx, [esp + 0x238]
mov byte [esp + 0x3e0], 0x29
call fcn.0040ac60
lea ecx, [esp + 0x224]
mov byte [esp + 0x3e0], 0x28
call fcn.0040a7f0
lea ecx, [esp + 0x210]
mov byte [esp + 0x3e0], 0x27
call fcn.0040ac00
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x3e0], 0x12
call fcn.005c0d94
xor edi, edi
jmp 0x407b8a
push esi
lea ecx, [esp + 0x374]
call fcn.0048fa60
lea ecx, [esp + 0x370]
mov byte [esp + 0x3e0], 0x30
call sub.mfc42u.dll_CDialog::DoModal
cmp eax, 1
je 0x4079e9
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00440af0
lea ecx, [esp + 0x370]
mov byte [esp + 0x3e0], 0x12
call fcn.005c0d94
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e0], 9
call fcn.0040a9d0
mov dword [esp + 0x30], 0x5e2838
mov eax, dword [esp + 0x34]
mov byte [esp + 0x3e0], 0x31
cmp eax, esi
je 0x4078ed
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5e262c
mov dword [esp + 0x18], 0x5e2860
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x3e0], 0x32
cmp eax, esi
je 0x407926
mov ecx, dword [esp + 0x20]
push ecx
push eax
call fcn.0040ce80
mov edx, dword [esp + 0x1c]
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], edi
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0x148]
mov dword [esp + 0x3e0], 0x38
call fcn.0040bb00
lea ecx, [esp + 0x134]
mov byte [esp + 0x3e0], 0x37
call fcn.0040b880
lea ecx, [esp + 0x120]
mov byte [esp + 0x3e0], 0x36
call fcn.0040b4b0
lea ecx, [esp + 0x10c]
mov byte [esp + 0x3e0], 0x35
call fcn.0040ac00
lea ecx, [esp + 0xf8]
mov byte [esp + 0x3e0], 0x34
call fcn.0040b120
mov byte [esp + 0x3e0], 0x33
lea ecx, [esp + 0xe4]
call fcn.0040af40
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.0040aec0
xor eax, eax
mov ecx, dword [esp + 0x3d8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x3d0]
mov dword [esp + 0x50], 0x5e27fc
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], esi
lea eax, [eax + eax*2]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3d4]
mov byte [esp + 0x3e0], 0x39
cmp eax, esi
je 0x407a6d
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jle 0x407a58
mov edx, dword [esp + 0x34]
lea ecx, [esi + 2]
push 1
mov eax, dword [edx + esi*4]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x58]
call fcn.0040c9d0
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x407a32
lea edx, [esp + 0x120]
lea eax, [esp + 0x50]
push edx
push 0
push 0
push 1
push eax
jmp 0x407a7d
lea ecx, [esp + 0x120]
lea edx, [esp + 0x50]
push ecx
push esi
push esi
push esi
push edx
call fcn.004057b0
fld qword [ebx + 0x30]
fcomp qword [0x5e28b0]
add esp, 0x14
fnstsw ax
test ah, 0x41
je 0x407ab9
fld qword [ebx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x407ab9
fld qword [ebx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ebx + 0x18]
jmp 0x407abc
fld qword [ebx + 0x18]
fld qword [esp + 0x44]
fmul qword [0x5e2910]
mov ecx, edi
fst qword [esp + 0x9c]
fxch st(1)
fdivr st(1)
fstp qword [esp + 0xc]
fstp st(0)
call fcn.004d7b80
fdivr qword [esp + 0xc]
call sub.msvcrt.dll__ftol
cmp eax, 1
jle 0x407b48
fld qword [ebx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x407b20
fld qword [ebx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x407b20
fld qword [ebx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ebx + 0x18]
jmp 0x407b23
fld qword [ebx + 0x18]
fdivr qword [esp + 0x9c]
mov ecx, edi
fstp qword [esp + 0x9c]
call fcn.004d7b80
fdivr qword [esp + 0x9c]
call sub.msvcrt.dll__ftol
mov edi, eax
jmp 0x407b4d
mov edi, 1
mov dword [esp + 0x50], 0x5e27fc
mov eax, dword [esp + 0x54]
mov byte [esp + 0x3e0], 0x3a
test eax, eax
je 0x407b6e
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x370]
mov dword [esp + 0x50], 0x5e262c
mov byte [esp + 0x3e0], 0x12
call fcn.005c0d94
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x407d17
lea ecx, [esp + 0x180]
call fcn.004b2ac0
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x3e0], 0x3b
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x407be1
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x407be1
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x407be4
fld qword [ecx + 0x18]
fld qword [ecx + 0x30]
fcomp qword [0x5e28b0]
fnstsw ax
test ah, 0x41
je 0x407c18
fld qword [ecx + 0x30]
fcomp qword [0x5e28a8]
fnstsw ax
test ah, 1
jne 0x407c18
fld qword [ecx + 0x30]
fmul qword [0x5e2640]
fsubr qword [0x5e2858]
fmul qword [ecx + 0x18]
jmp 0x407c1b
fld qword [ecx + 0x18]
fxch st(1)
fmul qword [0x5e2908]
push 0
push 0
sub esp, 8
lea ecx, [esp + 0x190]
fstp qword [esp]
fld qword [esp + 0x54]
fmul qword [0x5e2900]
sub esp, 8
fdiv st(1)
fstp qword [esp]
push 0
push 0
push 0xc0240000
push 0
push 0xc0240000
push 0
fstp st(0)
call fcn.004b2ca0
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00436b70
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.user32.dll_GetClientRect]
mov ecx, esi
call fcn.00436b70
mov eax, dword [eax + 0xd4]
lea ecx, [esp + 0x180]
lea edx, [esp + 0x9c]
push ecx
push edx
mov ecx, eax
call fcn.004d34b0
mov ecx, esi
call fcn.00436b70
mov esi, dword [eax + 0xd4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x190]
call fcn.0050abc0
sub esp, 8
lea ecx, [esp + 0x198]
fstp qword [esp]
call fcn.004b2c70
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004d2f90
mov ecx, eax
call fcn.004d2830
cmp dword [ebp + 0x10], 2
je 0x407d03
push 0
call sub.etinfo.dll_void___cdecl_mgUserCancelBegin_class_CWnd__
add esp, 4
lea ecx, [esp + 0x180]
mov byte [esp + 0x3e0], 0x12
call fcn.0042bd50
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xd0]
push edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x78]
push edi
push ecx
push 1
push edx
mov ecx, esi
call fcn.00405f50
mov edi, eax
cmp edi, 1
je 0x407eb0
test ebx, ebx
jne 0x407d50
call sub.etinfo.dll_void___cdecl_mgUserCancelEnd_void_
cmp edi, 0xfffffffe
jne 0x407d71
push 0
push 0
push 0x617b5c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call sub.mfc42u.dll_AfxMessageBox_1
jmp 0x407e17
cmp edi, 0xffffffff
jne 0x407d92
push 0
push 0
push 0x617b50
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call sub.mfc42u.dll_AfxMessageBox_1
jmp 0x407e17
test edi, edi
jne 0x407dad
push edi
push edi
push 0x617b40
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call sub.mfc42u.dll_AfxMessageBox_1
jmp 0x407e17
cmp edi, 7
jne 0x407dcb
push 0
push 0
push 0x617b34
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call sub.mfc42u.dll_AfxMessageBox_1
jmp 0x407e17
lea ecx, [esp + 0xc]
call sub.mfc42u.dll_CString::CString_3
push edi
push 0x617b20
mov byte [esp + 0x3e8], 0x3c
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
lea eax, [esp + 0x14]
push eax
call sub.mfc42u.dll_CString::Format_1
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push ecx
call sub.mfc42u.dll_AfxMessageBox_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 0x12
call sub.mfc42u.dll_CString::CString
mov ecx, esi
call fcn.0043e790
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e0], 9
call fcn.0040a9d0
mov dword [esp + 0x30], 0x5e2838
mov eax, dword [esp + 0x34]
mov byte [esp + 0x3e0], 0x3d
test eax, eax
je 0x407e53
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x5e262c
mov byte [esp + 0x3e0], 7
call fcn.0040b880
lea ecx, [esp + 0xb0]
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.004080c0
xor eax, eax
mov ecx, dword [esp + 0x3d8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 1
jne 0x407fae
mov eax, dword [esp + 0x160]
test eax, eax
je 0x407fae
lea edx, [esp + 0xb0]
lea eax, [esp + 0x10c]
push edx
push eax
call fcn.0050b890
fld qword [esp + 0xc8]
fcomp qword [esp + 0x6c]
add esp, 8
fnstsw ax
test ah, 1
jne 0x407fa8
mov eax, dword [esp + 0x114]
xor esi, esi
test eax, eax
jle 0x407f2b
xor edi, edi
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x1c]
add eax, edi
mov ecx, dword [ecx + esi*4]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esp + 0x114]
inc esi
add edi, 0x50
cmp esi, eax
jl 0x407f06
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e0], 9
call fcn.0040a9d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3e0], 8
call fcn.0040ac00
lea ecx, [esp + 0x18]
mov byte [esp + 0x3e0], 7
call fcn.0040b880
lea ecx, [esp + 0xb0]
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.004080c0
mov eax, 2
mov ecx, dword [esp + 0x3d8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x407fb7
jmp 0x407fb2
test ebx, ebx
jne 0x407fb7
call sub.etinfo.dll_void___cdecl_mgUserCancelEnd_void_
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00438380
push 0
push 0
push 0
mov ecx, esi
call sub.mfc42u.dll_CDocument::UpdateAllViews
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x84]
mov byte [esp + 0x3e0], 9
call fcn.0040a9d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3e0], 8
call fcn.0040ac00
lea ecx, [esp + 0x18]
mov byte [esp + 0x3e0], 7
call fcn.0040b880
lea ecx, [esp + 0xb0]
mov byte [esp + 0x3e0], 6
call fcn.0042bd50
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3e0], 0xffffffff
call fcn.004080c0
mov ecx, dword [esp + 0x3d8]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc