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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x558cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0x34]
push edi
mov ecx, dword [ebp + 0x414]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
call fcn.004c56f0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x74], edx
mov edx, dword [esp + 0x40]
mov dword [ebp + 0x78], ecx
mov ecx, dword [ebp + 0x414]
add esp, 8
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x70], edx
call fcn.004ccdc0
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
jle 0x408a06
push ecx
mov ecx, dword [ebp + 0x414]
call fcn.004ccd90
mov edi, dword [eax + 0x54]
mov esi, 0x5b6224
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x40897d
test dl, dl
je 0x408979
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x40897d
add ecx, 2
add esi, 2
test dl, dl
jne 0x408959
xor ecx, ecx
jmp 0x408982
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x4089d5
mov esi, 0x5b6304
mov ecx, edi
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x4089b1
test dl, dl
je 0x4089ad
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x4089b1
add ecx, 2
add esi, 2
test dl, dl
jne 0x40898d
xor ecx, ecx
jmp 0x4089b6
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x4089d5
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
mov dword [esp + 0x2c], ecx
jl 0x408943
mov ebx, dword [esp + 0x34]
jmp 0x408a06
mov edx, dword [eax + 8]
mov ecx, 1
sub edx, 3
mov dword [esp + 0x24], ecx
mov dword [ebp + 0x108], edx
mov edx, dword [ebp + 0x308]
cmp edx, ecx
mov ebx, eax
jne 0x4089fa
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x30c], ecx
jne 0x408a06
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x30c]
cmp eax, ecx
jge 0x408ae0
mov ecx, dword [ebp + 0x414]
call fcn.004ccdc0
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x408ace
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x414]
push edx
call fcn.004ccd90
mov esi, dword [ebx + 0x54]
mov edi, eax
mov ecx, dword [edi + 0x54]
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x408a6e
test dl, dl
je 0x408a6a
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x408a6e
add ecx, 2
add esi, 2
test dl, dl
jne 0x408a4a
xor ecx, ecx
jmp 0x408a73
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x408a98
mov ecx, dword [edi + 8]
mov eax, dword [ebx + 0x10]
sub ecx, 6
cmp ecx, eax
jne 0x408a98
mov edx, dword [edi + 4]
mov eax, dword [ebx + 4]
cmp edx, eax
jne 0x408a98
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
je 0x408aa9
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x408a32
jmp 0x408ace
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x308]
inc eax
mov ebx, edi
cmp eax, ecx
mov dword [esp + 0x24], eax
jne 0x408ac2
mov dword [esp + 0x14], edi
cmp eax, dword [ebp + 0x30c]
jne 0x408ace
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x30c]
cmp edx, eax
jl 0x408a18
mov ecx, dword [ebp + 0x414]
call fcn.004cc990
mov edi, eax
mov eax, dword [ebp + 0xc0]
xor esi, esi
mov ecx, dword [eax + 0x32c]
test ecx, ecx
jle 0x408b22
mov eax, dword [eax + 0x328]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x408b13
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [ebp + 0xc0]
inc esi
cmp esi, dword [eax + 0x32c]
jl 0x408aff
mov ecx, dword [ebp + 0xc0]
push 0xffffffffffffffff
add ecx, 0x324
push 0
call sub.MFC42.DLL_CObArray::SetSize
mov eax, edi
dec edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x408c97
mov ecx, dword [ebp + 0x414]
push edi
call fcn.004cc960
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x10]
cmp edx, esi
jne 0x408c24
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 8]
lea ecx, [ebx - 3]
cmp edx, ecx
jle 0x408bb0
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x10]
add ecx, 3
cmp edx, ecx
jge 0x408bb0
mov ecx, dword [ebp + 0x108]
cmp edx, ecx
je 0x408bb0
cmp edx, dword [ebp + 0x7c]
je 0x408bb0
mov edi, dword [eax + 0x18]
push edi
mov edi, dword [eax + 0x14]
push edi
mov edi, ecx
sub edi, ebx
sub ecx, ebx
lea esi, [edi + esi + 3]
lea edx, [ecx + edx + 3]
push esi
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 4]
push esi
push edx
push eax
jmp 0x408c79
cmp edx, esi
jne 0x408c24
mov ecx, dword [ebp + 0x108]
cmp edx, ecx
je 0x408c10
cmp edx, esi
jne 0x408c24
mov ebx, dword [ebp + 0x7c]
cmp edx, ebx
jne 0x408c07
mov edi, dword [eax + 0x18]
push edi
mov edi, dword [eax + 0x14]
push edi
mov edi, ecx
sub edi, ebx
mov ebx, dword [esp + 0x1c]
sub edi, dword [ebx + 8]
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx + 0x10]
add edi, ebx
lea esi, [edi + esi + 6]
push esi
mov esi, dword [eax + 0xc]
push esi
mov esi, dword [ebp + 0x7c]
sub ecx, esi
mov esi, dword [esp + 0x24]
sub ecx, dword [esi + 8]
add ecx, ebx
lea ecx, [ecx + edx + 6]
mov edx, dword [eax + 4]
push ecx
push edx
jmp 0x408c79
cmp edx, esi
jne 0x408c24
cmp edx, dword [ebp + 0x74]
jne 0x408c24
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
push esi
push ecx
push edx
mov edx, dword [eax + 4]
push edx
jmp 0x408c79
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0xc]
cmp ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edi
jne 0x408c84
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + 8]
lea ecx, [ebx - 3]
cmp edx, ecx
jge 0x408c84
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x10]
lea edi, [ecx + 3]
cmp esi, edi
jl 0x408c84
mov edi, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push edi
mov edi, dword [ebp + 0x7c]
push eax
mov eax, dword [ebp + 0x108]
sub eax, ebx
sub eax, edi
add eax, ecx
lea ecx, [eax + esi + 6]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc0]
call fcn.004cc8d0
mov edi, dword [esp + 0x10]
mov edx, edi
dec edi
test edx, edx
mov dword [esp + 0x10], edi
jne 0x408b46
mov ecx, dword [ebp + 0x414]
call fcn.004ccdc0
mov edi, eax
mov eax, dword [ebp + 0xc0]
xor esi, esi
mov ecx, dword [eax + 0x340]
test ecx, ecx
jle 0x408cd9
mov eax, dword [eax + 0x33c]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x408cca
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [ebp + 0xc0]
inc esi
cmp esi, dword [eax + 0x340]
jl 0x408cb6
mov ecx, dword [ebp + 0xc0]
push 0xffffffffffffffff
add ecx, 0x338
push 0
call sub.MFC42.DLL_CObArray::SetSize
mov eax, edi
dec edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x409008
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x414]
call fcn.004ccd90
mov ebx, eax
mov edi, 0x5b62bc
mov ecx, dword [ebx + 0x54]
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x408d3d
test al, al
je 0x408d39
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x408d3d
add esi, 2
add edi, 2
test al, al
jne 0x408d19
xor eax, eax
jmp 0x408d42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408f69
mov edi, 0x5b630c
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x408d75
test al, al
je 0x408d71
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x408d75
add esi, 2
add edi, 2
test al, al
jne 0x408d51
xor eax, eax
jmp 0x408d7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408f69
mov edi, 0x5b6314
mov esi, ecx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x408dad
test al, al
je 0x408da9
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x408dad
add esi, 2
add edi, 2
test al, al
jne 0x408d89
xor eax, eax
jmp 0x408db2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408f69
mov edi, 0x5b62b4
mov esi, ecx
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x408de9
test al, al
je 0x408de5
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x408de9
add esi, 2
add edi, 2
test al, al
jne 0x408dc1
xor eax, eax
jmp 0x408dee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408eaa
mov eax, dword [ebx + 0x84]
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x64]
push eax
push ecx
mov eax, dword [ebx + 0x68]
push edx
mov edx, dword [ebx + 0x58]
sub esp, 0x3c
lea esi, [ebx + 0x14]
mov ecx, 0xf
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 0x7c]
push ecx
mov ecx, dword [ebx + 0x78]
push edx
push eax
push ecx
push ecx
lea eax, [ebx + 0x54]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebx + 0x50]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
mov dword [esp + 0xb8], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x78]
mov eax, dword [ebp + 0x7c]
mov edi, dword [ebx + 0x10]
mov esi, dword [esp + 0x80]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp + 0x108]
mov esi, dword [esi + 0x10]
sub edi, eax
sub edi, ecx
mov dword [esp + 0xb4], 0xffffffff
add edi, edx
lea edi, [edi + esi + 6]
push edi
mov edi, dword [ebx + 0xc]
push edi
mov edi, dword [ebx + 8]
sub edi, eax
mov eax, dword [ebx + 4]
sub edi, ecx
add edi, edx
lea edx, [edi + esi + 6]
push edx
push eax
jmp 0x408fea
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
cmp ecx, dword [edx + 8]
jl 0x408ff5
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
cmp eax, dword [ecx + 0x10]
jg 0x408ff5
mov edx, dword [ebx + 0x84]
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x64]
push edx
mov edx, dword [ebx + 0x68]
push eax
mov eax, dword [ebx + 0x5c]
push ecx
sub esp, 0x3c
lea esi, [ebx + 0x14]
mov ecx, 0xf
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x58]
push edx
mov edx, dword [ebx + 0x7c]
push eax
mov eax, dword [ebx + 0x78]
push ecx
push edx
push eax
push ecx
lea eax, [ebx + 0x54]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebx + 0x50]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
mov dword [esp + 0xb8], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x78]
mov edx, dword [ebx + 0x10]
mov dword [esp + 0xb4], 0xffffffff
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x108]
sub edx, ecx
lea edx, [edx + eax + 3]
sub eax, ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [ebx + 0xc]
push edx
lea edx, [eax + ecx + 3]
mov eax, dword [ebx + 4]
push edx
push eax
jmp 0x408fea
mov ecx, dword [ebx + 0x84]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x64]
push ecx
push edx
push eax
mov edx, dword [ebx + 0x5c]
sub esp, 0x3c
mov eax, dword [ebx + 0x58]
lea esi, [ebx + 0x14]
mov ecx, 0xf
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x7c]
push edx
mov edx, dword [ebx + 0x78]
push eax
push ecx
push edx
push ecx
lea eax, [ebx + 0x54]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebx + 0x50]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
mov dword [esp + 0xb8], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
mov dword [esp + 0xc0], 0xffffffff
push ecx
mov ecx, dword [ebp + 0xc0]
call fcn.004ccc50
mov eax, dword [esp + 0x10]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x408cfd
mov eax, dword [0x5c0450]
mov ebx, dword [0x5c02c0]
mov ecx, dword [ebp + 0xc0]
sub eax, ebx
inc eax
mov dword [ecx + 0x360], eax
mov edx, dword [ebp + 0x414]
mov eax, dword [ebp + 0xc0]
mov ecx, dword [edx + 0x364]
mov dword [eax + 0x364], ecx
mov edx, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add edx, 0x368
push edx
add ecx, 0x368
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add eax, 0x36c
add ecx, 0x36c
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 0x414]
add ecx, 0x370
push ecx
mov ecx, dword [ebp + 0xc0]
add ecx, 0x370
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add edx, 0x374
add ecx, 0x374
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add eax, 0x378
add ecx, 0x378
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 0x414]
add ecx, 0x37c
push ecx
mov ecx, dword [ebp + 0xc0]
add ecx, 0x37c
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add edx, 0x380
add ecx, 0x380
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp + 0x414]
mov ecx, dword [ebp + 0xc0]
add eax, 0x384
add ecx, 0x384
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp + 0xc0]
mov dword [ebp + 0x108], 0xffffffff
call fcn.004ccdc0
mov ebx, dword [ebp + 0xc8]
mov edi, dword [0x5c0278]
mov esi, dword [0x5c0280]
sub ebx, edi
sub ebx, esi
mov ecx, eax
dec eax
mov dword [esp + 0x24], ebx
test ecx, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x4093b3
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xc0]
push edx
call fcn.004ccd90
mov ecx, eax
mov edi, 0x5b6224
mov esi, dword [ecx + 0x54]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4091ab
test al, al
je 0x4091a7
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4091ab
add esi, 2
add edi, 2
test al, al
jne 0x409187
xor eax, eax
jmp 0x4091b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4091ed
mov esi, dword [ecx + 0x54]
mov edi, 0x5b6304
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4091e0
test al, al
je 0x4091dc
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4091e0
add esi, 2
add edi, 2
test al, al
jne 0x4091bc
xor eax, eax
jmp 0x4091e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40929f
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4092ab
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov edx, dword [ebp + 0x2f8]
sub eax, edi
add eax, 6
mov dword [esp + 0x10], ecx
add edx, eax
mov dword [ebp + 0x2f8], edx
mov eax, dword [ecx + 8]
fild dword [ebp + 0x2f8]
lea edx, [ebx + ebx*4]
add eax, 0xfffffffd
shl edx, 1
fdiv qword [ebp + 0xd0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov dword [ebp + 0xf0], eax
mov eax, dword [0x5c01a4]
add eax, 0x23
fmul qword [0x57f530]
fild dword [esp + 0x34]
fild dword [esp + 0x2c]
mov dword [esp + 0x34], eax
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x409394
mov dword [ebp + 0xf4], ecx
mov dword [ebp + 0xf8], ecx
mov ecx, dword [ecx + 8]
sub ecx, 3
mov dword [ebp + 0x108], ecx
jmp 0x409394
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409394
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov edx, dword [ecx + 4]
cmp eax, edx
jne 0x409394
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
mov edx, dword [ecx + 0xc]
cmp eax, edx
jne 0x409394
mov edx, dword [esp + 0x10]
mov edi, dword [ecx + 0x54]
mov esi, dword [edx + 0x54]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x4092fd
test al, al
je 0x4092f9
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x4092fd
add esi, 2
add edi, 2
test al, al
jne 0x4092d9
xor eax, eax
jmp 0x409302
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409394
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp dword [edx + 0x10], eax
jge 0x409394
mov edx, dword [ecx + 0x10]
mov esi, dword [ebp + 0x2f8]
sub edx, eax
mov dword [esp + 0x10], ecx
add edx, 6
add esi, edx
lea edx, [ebx + ebx*4]
mov eax, esi
mov dword [ebp + 0x2f8], esi
mov dword [esp + 0x34], eax
mov eax, dword [0x5c01a4]
fild dword [esp + 0x34]
shl edx, 1
mov dword [esp + 0x34], edx
add eax, 0x23
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x34]
fild dword [ebp + 0xf0]
mov dword [esp + 0x34], eax
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x409394
mov dword [ebp + 0xf4], ecx
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x40916d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4095d9
mov ecx, dword [ebp + 0xc0]
call fcn.004ccdc0
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x1c], eax
je 0x4095d9
mov ecx, dword [ebp + 0xc0]
push eax
call fcn.004ccd90
mov ecx, eax
mov edi, 0x5b62fc
mov edx, dword [ecx + 0x54]
mov esi, edx
mov bl, byte [esi]
mov al, bl
cmp bl, byte [edi]
jne 0x409409
test al, al
je 0x409405
mov bl, byte [esi + 1]
mov al, bl
cmp bl, byte [edi + 1]
jne 0x409409
add esi, 2
add edi, 2
test al, al
jne 0x4093e5
xor eax, eax
jmp 0x40940e
sbb eax, eax
sbb eax, 0xffffffff
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4094cc
test ebx, ebx
jne 0x4094d4
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov edx, dword [ebp + 0x2f8]
sub eax, edi
add eax, 6
mov ebx, dword [esp + 0x24]
add edx, eax
mov dword [esp + 0x10], ecx
mov dword [ebp + 0x2f8], edx
mov eax, dword [ecx + 8]
fild dword [ebp + 0x2f8]
lea edx, [ebx + ebx*4]
add eax, 0xfffffffd
shl edx, 1
fdiv qword [ebp + 0xd0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
mov dword [ebp + 0xf0], eax
mov eax, dword [0x5c01a4]
add eax, 0x23
fmul qword [0x57f530]
fild dword [esp + 0x34]
fild dword [esp + 0x2c]
mov dword [esp + 0x34], eax
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4095c6
mov dword [ebp + 0xf4], ecx
mov dword [ebp + 0xf8], ecx
mov ecx, dword [ecx + 8]
sub ecx, 3
mov dword [ebp + 0x108], ecx
jmp 0x4095c6
test ebx, ebx
je 0x4095c2
mov eax, dword [ebx + 4]
mov esi, dword [ecx + 4]
cmp eax, esi
je 0x4094ec
mov eax, dword [ebx + 0xc]
mov esi, dword [ecx + 0xc]
cmp eax, esi
jne 0x4095c2
mov edi, 0x5b62fc
mov esi, edx
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x409517
test al, al
je 0x409513
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x409517
add esi, 2
add edi, 2
test al, al
jne 0x4094f3
xor eax, eax
jmp 0x40951c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4095c2
mov edx, dword [ebx + 0x10]
mov eax, dword [ecx + 8]
cmp edx, eax
jge 0x4095c2
mov esi, eax
sub esi, edx
cmp esi, 6
jne 0x4095c2
mov edx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x24]
sub edx, eax
mov dword [esp + 0x10], ecx
add edx, esi
mov esi, dword [ebp + 0x2f8]
add esi, edx
lea edx, [ebx + ebx*4]
mov eax, esi
mov dword [ebp + 0x2f8], esi
mov dword [esp + 0x34], eax
mov eax, dword [0x5c01a4]
fild dword [esp + 0x34]
shl edx, 1
mov dword [esp + 0x34], edx
add eax, 0x23
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fild dword [esp + 0x34]
fild dword [ebp + 0xf0]
mov dword [esp + 0x34], eax
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4095c6
mov dword [ebp + 0xf4], ecx
jmp 0x4095c6
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x1c], eax
jne 0x4093cd
lea edx, [ebx + ebx*4]
mov eax, dword [0x5c01a4]
shl edx, 1
mov dword [esp + 0x34], edx
add eax, 6
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fstp qword [esp + 0x24]
fild dword [ebp + 0xf0]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fstp qword [esp + 0x1c]
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fstp qword [esp + 0x14]
fld qword [esp + 0x24]
fsub qword [esp + 0x1c]
fsub qword [0x57f528]
fsub qword [esp + 0x14]
fst qword [esp + 0x2c]
fcomp qword [0x57f4f0]
fnstsw ax
test ah, 0x41
jne 0x409681
fild dword [ebp + 0x2f8]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fld qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
fld st(0)
mov esi, eax
call sub.MSVCRT.dll__ftol
cdq
idiv esi
test edx, edx
jne 0x40967f
fdiv qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
mov dword [ebp + 0xe8], eax
jmp 0x4096ee
fstp st(0)
fld qword [esp + 0x2c]
fcomp qword [0x57f4f0]
fnstsw ax
test ah, 0x41
jne 0x4096ee
fild dword [ebp + 0x2f8]
mov eax, dword [ebp + 0xc8]
fdiv qword [ebp + 0xd0]
lea ecx, [eax + eax*4]
shl ecx, 1
mov dword [esp + 0x34], ecx
fmul qword [0x57f530]
fild dword [esp + 0x34]
fsub qword [esp + 0x1c]
fsub qword [0x57f528]
fsub qword [esp + 0x14]
call sub.MSVCRT.dll__ftol
fld st(0)
mov esi, eax
call sub.MSVCRT.dll__ftol
cdq
idiv esi
test edx, edx
je 0x4096ec
fdiv qword [esp + 0x2c]
call sub.MSVCRT.dll__ftol
inc eax
mov dword [ebp + 0xe8], eax
jmp 0x4096ee
fstp st(0)
mov edx, dword [ebp + 0xf8]
mov ecx, dword [ebp + 0xf4]
mov ebx, 1
mov eax, dword [edx + 8]
sub eax, 3
mov dword [ebp + 0x10c], eax
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0xe8]
add edx, 3
cmp eax, ebx
mov dword [ebp + 0x1fc], edx
jle 0x40988a
lea edi, [ebp + 0x110]
mov eax, dword [ebp + 0xf4]
test eax, eax
mov dword [ebp + 0xf8], eax
je 0x409874
mov ecx, dword [ebp + 0xc0]
call fcn.004ccdc0
fld qword [0x57f4f0]
fdiv qword [ebp + 0xd0]
mov eax, dword [0x5c01a4]
mov ecx, dword [ebp + 0xf8]
add eax, 0x23
xor esi, esi
mov dword [esp + 0x34], eax
fmul qword [0x57f530]
fild dword [ebp + 0xf0]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubr qword [esp + 0x24]
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x40981a
push ecx
mov ecx, dword [ebp + 0xc0]
push ecx
call fcn.004c56a0
add esp, 8
test eax, eax
je 0x40981a
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 8]
sub edx, ecx
mov dword [ebp + 0xf4], eax
mov ecx, eax
mov eax, dword [0x5c01a4]
lea esi, [esi + edx + 6]
add eax, 0x23
mov dword [esp + 0x34], esi
fild dword [esp + 0x34]
mov dword [esp + 0x34], eax
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fild dword [ebp + 0xf0]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubr qword [esp + 0x24]
fild dword [esp + 0x34]
fdiv qword [ebp + 0xd0]
fmul qword [0x57f530]
fsubp st(1)
fcompp
fnstsw ax
test ah, 1
je 0x4097a1
mov ecx, dword [ebp + 0xf8]
mov edx, dword [ecx + 0x10]
add edx, 3
mov dword [edi], edx
mov eax, dword [ebp + 0xf4]
mov eax, dword [eax + 0x10]
add eax, 3
mov dword [edi + 0xf0], eax
mov ecx, dword [ebp + 0xe8]
dec ecx
cmp ebx, ecx
jne 0x40984f
cmp dword [edi], eax
jne 0x40984f
mov dword [ebp + 0xe8], ecx
mov eax, dword [ebp + 0xe8]
inc ebx
add edi, 4
cmp ebx, eax
jl 0x40972b
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2010
push 0x5b6164
push 0x5b6338
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x48]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret