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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c53a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x626e68
mov dword [esp + 0x10], esi
call fcn.00470c00
test al, al
je 0x4223ea
mov ebx, dword [esi + 0x2d4]
mov eax, dword [esi + 0x2d8]
dec ebx
xor ecx, ecx
sub eax, ebx
mov dword [esp + 0x14], ebx
dec eax
mov dword [esp + 0x34], 0x5e2984
mov edx, eax
mov eax, dword [esi + 0x2d0]
sub eax, ebx
mov dword [esp + 0x1c], edx
dec eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov edi, eax
mov dword [esp + 0x78], ecx
imul edi, edx
cmp edi, ecx
jne 0x422021
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
jmp 0x422046
lea eax, [edi*8]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x38], eax
push edi
push eax
call fcn.0049df10
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
xor ecx, ecx
mov edx, dword [esi + 0x2d0]
lea eax, [ebx + 1]
xor edi, edi
cmp eax, edx
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], eax
jge 0x42212c
mov ecx, dword [esi + 0x2d8]
inc ebx
cmp ebx, ecx
jge 0x422113
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esi + 0x220]
call fcn.004c4290
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push eax
lea esi, [edx + edi*8]
call dword [sym.imp.msvcrt.dll_wcstod]
fabs
fstp qword [esi]
add esp, 8
lea ecx, [esp + 0x28]
call sub.mfc42u.dll_CString::CString
mov edx, dword [esp + 0x38]
sub esp, 8
fld qword [edx + edi*8]
lea esi, [edx + edi*8]
fadd st(0), st(0)
fstp qword [esp]
call dword [sym.imp.msvcrt.dll_floor]
fmul qword [0x5e2790]
fstp qword [esi]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [eax + edi*8]
lea esi, [eax + edi*8]
push ecx
push edx
call dword [sym.imp.msvcrt.dll_floor]
fcomp qword [esi]
add esp, 0x10
fnstsw ax
test ah, 0x40
jne 0x4220f7
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x10]
inc edi
inc ebx
mov ecx, dword [eax + 0x2d8]
mov eax, dword [esp + 0x18]
cmp ebx, ecx
jl 0x422071
mov ecx, dword [esi + 0x2d0]
mov ebx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x422062
xor ecx, ecx
mov dword [esp + 0x48], 0x5e27fc
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x78], 1
cmp edi, ecx
jne 0x42215b
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
jmp 0x422180
lea ecx, [edi*4]
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x4c], eax
push edi
push eax
call fcn.005463a0
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
xor ecx, ecx
mov al, byte [esp + 0xf]
test al, al
je 0x4221b3
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp eax, ecx
jle 0x4221dc
mov edx, dword [esp + 0x38]
fld qword [edx + edi*8]
fadd st(0), st(0)
call sub.msvcrt.dll__ftol
mov ecx, dword [esp + 0x4c]
inc edi
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [esp + 0x3c]
cmp edi, eax
jl 0x422192
jmp 0x4221da
mov eax, dword [esp + 0x3c]
xor edi, edi
cmp eax, ecx
jle 0x4221dc
mov edx, dword [esp + 0x38]
fld qword [edx + edi*8]
call sub.msvcrt.dll__ftol
mov ecx, dword [esp + 0x4c]
inc edi
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [esp + 0x3c]
cmp edi, eax
jl 0x4221bd
xor ecx, ecx
mov dword [esp + 0x5c], 0x5e27fc
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x50]
mov byte [esp + 0x78], 2
imul eax, ebx
cdq
idiv dword [esp + 0x1c]
mov edi, eax
cmp edi, ecx
jne 0x422215
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], ecx
jmp 0x422238
lea edx, [edi*4]
push edx
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x60], eax
push edi
push eax
call fcn.005463a0
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::BeginWaitCursor
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x54]
push edx
cdq
idiv edi
mov ecx, dword [esi + 0x4ac]
mov byte [esp + 0x80], 3
push eax
mov eax, dword [ebp + 8]
push ecx
push edi
push ebx
push eax
call fcn.005b3290
add esp, 0x1c
cmp eax, 0xffffffff
je 0x422397
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x422343
or eax, 0xffffffff
lea edi, [ebx + 1]
sub eax, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x42231d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ebx, [esi + 0x220]
mov esi, 1
lea edx, [ecx*4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx]
mov cl, byte [esp + 0xf]
test cl, cl
je 0x4222dc
add eax, eax
push eax
push 0
push 0x617dbc
push esi
push edi
push ebx
call fcn.004c06e0
add esp, 0x18
mov ecx, ebx
push 0xe0ffff
push esi
push edi
call fcn.004c0c30
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x14]
inc esi
mov dword [esp + 0x18], edx
lea ecx, [esi - 1]
cmp ecx, eax
jl 0x4222c7
mov esi, dword [esp + 0x10]
mov ebx, eax
push edi
mov ecx, esi
call fcn.0041e520
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add edx, 4
inc edi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x30]
add edx, edi
cmp edx, eax
jl 0x4222a1
mov eax, dword [esi + 0x4b0]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.004e5b10
mov ecx, dword [esi + 0x4b0]
xor eax, eax
test ecx, ecx
jle 0x42237b
mov ecx, dword [esi + 0x4ac]
mov edx, dword [esp + 0x38]
fild dword [ecx + eax*4]
inc eax
fstp qword [edx + eax*8 - 8]
cmp eax, dword [esi + 0x4b0]
jl 0x422361
lea eax, [esp + 0x34]
push 1
push eax
mov ecx, esi
call fcn.0041caa0
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
fstp st(0)
call fcn.0041bb70
add esi, 0x220
mov ecx, esi
call fcn.004c1160
mov ecx, esi
call fcn.004c1420
mov byte [esp + 0x78], 2
call sub.mfc42u.dll_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.mfc42u.dll_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 1
call fcn.0040a7f0
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0
call fcn.0040a7f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], 0xffffffff
call fcn.0040a9d0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4