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

Disassembly:
sub esp, 0xb4
push ebx
mov ebx, dword [esp + 0xc4]
xor ecx, ecx
mov edx, dword [esp + 0xbc]
mov eax, dword [ebx + 4]
mov cx, word [ebx + 0xe]
imul ecx, eax
add ecx, 0x1f
push ebp
sar ecx, 3
and ecx, 0xfffffffc
xor ebp, ebp
mov dword [esp + 0x34], ecx
mov ecx, eax
imul eax, dword [ebx + 8]
imul ecx, dword [edx + 8]
mov dword [esp + 0x80], eax
mov al, byte [0x559a20]
push esi
push edi
test al, al
mov dword [esp + 0x84], ecx
je 0x4a871f
mov ecx, 0x40
xor eax, eax
mov edi, 0x559a20
rep stosd dword es:[edi], eax
mov byte [eax + 0x559b20], al
inc eax
cmp eax, 0x100
jl 0x4a8702
mov ecx, 0x40
or eax, 0xffffffff
mov edi, 0x559c20
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
shl eax, 3
push eax
fidiv dword [edx + 4]
fstp dword [esp + 0x38]
fild dword [ebx + 8]
fidiv dword [edx + 8]
fstp dword [esp + 0x18]
call sub.MFC42.DLL_operatornew
fld dword [esp + 0x38]
fcomp dword [0x53006c]
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
fnstsw ax
test ah, 1
je 0x4a88a7
fld dword [esp + 0xdc]
fdiv dword [esp + 0x34]
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], ebp
cmp eax, ebp
fstp dword [esp + 0x18]
fld dword [0x53006c]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x24]
jle 0x4a89cd
fld dword [esp + 0x18]
fadd st(0), st(0)
fadd dword [0x53006c]
call sub.MSVCRT.dll__ftol
shl eax, 3
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov dword [esi], 0
push ecx
call sub.MFC42.DLL_operatornew
fild dword [esp + 0x2c]
push ecx
mov dword [esi + 4], eax
fdiv dword [esp + 0x3c]
fst dword [esp + 0x28]
fsub dword [esp + 0x20]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0x20]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x1c], ebx
fild dword [esp + 0x1c]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4a8882
mov ebp, ebx
neg ebp
fld dword [esp + 0x20]
fsub st(1)
push ecx
fdiv dword [esp + 0x28]
fstp dword [esp]
fstp st(0)
call dword [esp + 0xdc]
fdiv dword [esp + 0x28]
add esp, 4
test ebx, ebx
jge 0x4a8837
mov eax, ebp
jmp 0x4a884e
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 4]
cmp ebx, eax
jl 0x4a884c
add eax, eax
sub eax, ebx
dec eax
jmp 0x4a884e
mov eax, ebx
mov edi, dword [esi]
fmul dword [0x539a90]
lea ecx, [edi + 1]
mov dword [esi], ecx
mov edx, dword [esi + 4]
mov dword [edx + edi*8], eax
call sub.MSVCRT.dll__ftol
inc ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ebx
dec ebp
fild dword [esp + 0x1c]
mov dword [ecx + edi*8 + 4], eax
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a8811
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x28]
inc eax
add esi, 8
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], eax
cmp eax, ecx
fstp st(0)
jl 0x4a87a6
jmp 0x4a89cd
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jle 0x4a89cd
fld dword [esp + 0xdc]
fadd st(0), st(0)
fadd dword [0x53006c]
call sub.MSVCRT.dll__ftol
shl eax, 3
mov dword [esp + 0x10], eax
jmp 0x4a88d7
mov eax, dword [esp + 0x10]
push eax
mov dword [esi], 0
call sub.MFC42.DLL_operatornew
fild dword [esp + 0x28]
push ecx
mov dword [esi + 4], eax
fdiv dword [esp + 0x3c]
fst dword [esp + 0x28]
fsub dword [esp + 0xe4]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0xe4]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4a89ad
mov ebp, ebx
neg ebp
fld dword [esp + 0x20]
fsub st(1)
push ecx
fstp dword [esp]
fstp st(0)
call dword [esp + 0xdc]
add esp, 4
test ebx, ebx
jge 0x4a8962
mov eax, ebp
jmp 0x4a8979
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 4]
cmp ebx, eax
jl 0x4a8977
add eax, eax
sub eax, ebx
dec eax
jmp 0x4a8979
mov eax, ebx
mov edi, dword [esi]
fmul dword [0x539a90]
lea ecx, [edi + 1]
mov dword [esi], ecx
mov edx, dword [esi + 4]
mov dword [edx + edi*8], eax
call sub.MSVCRT.dll__ftol
inc ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], ebx
dec ebp
fild dword [esp + 0x28]
mov dword [ecx + edi*8 + 4], eax
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a8944
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x24]
inc eax
add esi, 8
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], eax
cmp eax, ecx
fstp st(0)
jl 0x4a88d3
mov esi, dword [esp + 0xd0]
mov eax, dword [esi + 8]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
fld dword [esp + 0x18]
fcomp dword [0x53006c]
mov dword [esp + 0x38], eax
add esp, 4
fnstsw ax
test ah, 1
je 0x4a8b49
fld dword [esp + 0xdc]
fdiv dword [esp + 0x14]
mov eax, dword [esi + 8]
mov dword [esp + 0x10], 0
test eax, eax
fstp dword [esp + 0x18]
fld dword [0x53006c]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x24]
jle 0x4a8c77
fld dword [esp + 0x18]
fadd st(0), st(0)
fadd dword [0x53006c]
call sub.MSVCRT.dll__ftol
mov esi, dword [esp + 0x34]
shl eax, 3
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov dword [esi], 0
push ecx
call sub.MFC42.DLL_operatornew
fild dword [esp + 0x14]
push ecx
mov dword [esi + 4], eax
fdiv dword [esp + 0x1c]
fst dword [esp + 0x28]
fsub dword [esp + 0x20]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0x20]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x28], ebx
fild dword [esp + 0x28]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4a8b24
mov ebp, ebx
neg ebp
fld dword [esp + 0x20]
fsub st(1)
push ecx
fdiv dword [esp + 0x28]
fstp dword [esp]
fstp st(0)
call dword [esp + 0xdc]
fdiv dword [esp + 0x28]
add esp, 4
test ebx, ebx
jge 0x4a8ad9
mov eax, ebp
jmp 0x4a8af0
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 8]
cmp ebx, eax
jl 0x4a8aee
add eax, eax
sub eax, ebx
dec eax
jmp 0x4a8af0
mov eax, ebx
mov edi, dword [esi]
fmul dword [0x539a90]
lea ecx, [edi + 1]
mov dword [esi], ecx
mov edx, dword [esi + 4]
mov dword [edx + edi*8], eax
call sub.MSVCRT.dll__ftol
inc ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], ebx
dec ebp
fild dword [esp + 0x28]
mov dword [ecx + edi*8 + 4], eax
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a8ab3
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x10]
inc eax
add esi, 8
mov ecx, dword [edx + 8]
mov dword [esp + 0x10], eax
cmp eax, ecx
fstp st(0)
jl 0x4a8a48
jmp 0x4a8c77
mov eax, dword [esi + 8]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x4a8c77
fld dword [esp + 0xdc]
fadd st(0), st(0)
fadd dword [0x53006c]
call sub.MSVCRT.dll__ftol
mov esi, dword [esp + 0x34]
shl eax, 3
mov dword [esp + 0x10], eax
jmp 0x4a8b81
mov eax, dword [esp + 0x10]
push eax
mov dword [esi], 0
call sub.MFC42.DLL_operatornew
fild dword [esp + 0x2c]
push ecx
mov dword [esi + 4], eax
fdiv dword [esp + 0x1c]
fst dword [esp + 0x28]
fsub dword [esp + 0xe4]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
fstp dword [esp + 0x24]
fld dword [esp + 0x28]
fadd dword [esp + 0xe4]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
fstp dword [esp + 0x34]
fld dword [esp + 0x24]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebx, eax
mov dword [esp + 0x30], ebx
fild dword [esp + 0x30]
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
je 0x4a8c57
mov ebp, ebx
neg ebp
fld dword [esp + 0x20]
fsub st(1)
push ecx
fstp dword [esp]
fstp st(0)
call dword [esp + 0xdc]
add esp, 4
test ebx, ebx
jge 0x4a8c0c
mov eax, ebp
jmp 0x4a8c23
mov eax, dword [esp + 0xc8]
mov eax, dword [eax + 8]
cmp ebx, eax
jl 0x4a8c21
add eax, eax
sub eax, ebx
dec eax
jmp 0x4a8c23
mov eax, ebx
mov edi, dword [esi]
fmul dword [0x539a90]
lea ecx, [edi + 1]
mov dword [esi], ecx
mov edx, dword [esi + 4]
mov dword [edx + edi*8], eax
call sub.MSVCRT.dll__ftol
inc ebx
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], ebx
dec ebp
fild dword [esp + 0x30]
mov dword [ecx + edi*8 + 4], eax
fcom dword [esp + 0x2c]
fnstsw ax
test ah, 0x41
jne 0x4a8bee
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x28]
inc eax
add esi, 8
mov ecx, dword [edx + 8]
mov dword [esp + 0x28], eax
cmp eax, ecx
fstp st(0)
jl 0x4a8b7d
mov ebx, dword [esp + 0xd0]
mov ecx, 0xb
mov esi, ebx
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xc8]
mov eax, dword [edi + 8]
mov dword [esp + 0x94], eax
imul eax, dword [esp + 0x3c]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi + 8]
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
cmp ecx, eax
mov eax, dword [esp + 0x9a]
mov dword [esp + 0x28], esi
jle 0x4a9553
xor ecx, ecx
cmp ax, 8
sete cl
and eax, 0xffff
mov dword [esp + 0x30], ecx
imul eax, dword [esp + 0x90]
add eax, 0x1f
mov dword [esp + 0x1c], esi
sar eax, 3
and al, 0xfc
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0xc8]
xor eax, eax
mov edx, dword [esp + 0xcc]
mov esi, dword [esp + 0x1c]
mov ax, word [ecx + 0xe]
mov edi, eax
imul edi, dword [ecx + 4]
add edi, 0x1f
sar edi, 3
and edi, 0xfffffffc
imul edi, dword [esp + 0x24]
add edi, edx
dec eax
cmp eax, 0x17
ja case.0x4a8d39.6
xor edx, edx
mov dl, byte [eax + 0x4a99b8]
jmp dword [edx*4 + 0x4a99a0]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a8e11
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], 0
test eax, eax
jle case.0x4a8d39.6
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
xor ebp, ebp
mov ebx, dword [edx]
test ebx, ebx
jle 0x4a8dd1
mov eax, edx
mov esi, dword [eax + 4]
mov eax, dword [esi]
mov ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4a8d91
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
mov dword [esp + 0x3c], edx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 3
mov cl, byte [eax + edi]
and dl, cl
mov ecx, dword [esp + 0xc8]
neg dl
sbb edx, edx
xor eax, eax
neg edx
add esi, 8
mov al, byte [ecx + edx*4 + 0x29]
imul eax, dword [esi - 4]
add ebp, eax
dec ebx
jne 0x4a8d80
mov ecx, dword [esp + 0x10]
mov eax, ebp
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc ecx
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov byte [eax + ecx - 1], dl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x90]
add edx, 8
cmp ecx, eax
mov dword [esp + 0x14], edx
jl 0x4a8d6f
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x90]
test eax, eax
jle case.0x4a8d39.6
mov ecx, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
jle 0x4a8ed1
mov ebp, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
mov ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4a8e5f
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
mov ebx, 0x80
add eax, edx
sar ebx, cl
sar eax, 3
mov ecx, dword [esp + 0xc8]
mov al, byte [eax + edi]
and bl, al
neg bl
sbb ebx, ebx
xor edx, edx
neg ebx
add ebp, 8
mov dl, byte [ecx + ebx*4 + 0x28]
lea eax, [ecx + ebx*4 + 0x28]
mov ecx, dword [ebp - 4]
mov ebx, dword [esp + 0x50]
imul edx, ecx
add ebx, edx
xor edx, edx
mov dl, byte [eax + 1]
mov dword [esp + 0x50], ebx
imul edx, ecx
mov ebx, dword [esp + 0x54]
add ebx, edx
xor edx, edx
mov dl, byte [eax + 2]
mov eax, dword [esp + 0x10]
imul edx, ecx
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x58]
add ebx, edx
dec eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x10], eax
jne 0x4a8e4d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
add ecx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x54]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x58]
mov byte [esi - 1], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4a8e2e
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a8ffc
mov eax, dword [esp + 0x90]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle case.0x4a8d39.6
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
xor esi, esi
test eax, eax
jle 0x4a8fc0
mov ecx, dword [ebx + 4]
mov ebx, eax
mov eax, dword [ecx]
test al, 1
cdq
je 0x4a8f8e
sub eax, edx
sar eax, 1
mov dl, byte [eax + edi]
and dl, 0xf
mov byte [esp + 0x2c], dl
jmp 0x4a8f9c
sub eax, edx
sar eax, 1
mov al, byte [eax + edi]
shr al, 4
mov byte [esp + 0x2c], al
mov edx, dword [esp + 0x2c]
xor eax, eax
and edx, 0xff
add ecx, 8
mov al, byte [ebp + edx*4 + 0x29]
imul eax, dword [ecx - 4]
add esi, eax
dec ebx
jne 0x4a8f77
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, esi
add ebx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ebx
add eax, edx
sar eax, 0x10
inc ecx
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov byte [eax + ecx - 1], dl
mov eax, dword [esp + 0x90]
cmp ecx, eax
jl 0x4a8f6a
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x90]
test eax, eax
jle case.0x4a8d39.6
mov ecx, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
jle 0x4a90bc
mov ebp, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
test al, 1
cdq
je 0x4a904f
sub eax, edx
sar eax, 1
mov al, byte [eax + edi]
and al, 0xf
mov byte [esp + 0x20], al
jmp 0x4a905d
sub eax, edx
sar eax, 1
mov cl, byte [eax + edi]
shr cl, 4
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc8]
mov ecx, dword [ebp + 4]
and edx, 0xff
mov ebx, dword [esp + 0x5c]
add ebp, 8
lea eax, [eax + edx*4 + 0x28]
xor edx, edx
mov dl, byte [eax]
imul edx, ecx
add ebx, edx
xor edx, edx
mov dl, byte [eax + 1]
mov dword [esp + 0x5c], ebx
imul edx, ecx
mov ebx, dword [esp + 0x60]
add ebx, edx
xor edx, edx
mov dl, byte [eax + 2]
mov eax, dword [esp + 0x10]
imul edx, ecx
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x64]
add ebx, edx
dec eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x10], eax
jne 0x4a9038
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x5c]
add ecx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x60]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x64]
mov byte [esi - 1], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4a9019
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a91b7
mov eax, dword [esp + 0x90]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle case.0x4a8d39.6
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0x14], ebx
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jle 0x4a9181
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
xor ebx, ebx
add ecx, 8
mov bl, byte [edx + edi]
xor edx, edx
mov dl, byte [ebp + ebx*4 + 0x29]
imul edx, dword [ecx - 4]
add eax, edx
dec esi
jne 0x4a9160
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cdq
and edx, 0xffff
add ebx, 8
add eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 0x10
inc ecx
mov dword [esp + 0x14], ebx
mov al, byte [eax + 0x559b20]
mov dword [esp + 0x10], ecx
mov byte [edx + ecx - 1], al
mov eax, dword [esp + 0x90]
cmp ecx, eax
jl 0x4a9155
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x90]
test eax, eax
jle case.0x4a8d39.6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
jle 0x4a924a
mov ebp, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp]
mov eax, dword [esp + 0xc8]
xor edx, edx
mov ebx, dword [esp + 0x68]
mov dl, byte [ecx + edi]
add ebp, 8
lea ecx, [eax + edx*4 + 0x28]
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [ecx]
imul eax, edx
add ebx, eax
xor eax, eax
mov al, byte [ecx + 1]
mov dword [esp + 0x68], ebx
imul eax, edx
mov ebx, dword [esp + 0x6c]
add ebx, eax
xor eax, eax
mov al, byte [ecx + 2]
mov dword [esp + 0x6c], ebx
imul eax, edx
mov edx, dword [esp + 0x70]
add edx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x10], eax
jne 0x4a91ed
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
add ecx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x6c]
mov byte [esi - 1], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x70]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x18]
mov byte [esi - 1], dl
dec eax
mov dword [esp + 0x18], eax
jne 0x4a91d2
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x90]
test eax, eax
jle case.0x4a8d39.6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
jle 0x4a9352
mov ebp, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov ebx, dword [esp + 0x78]
add ebp, 8
mov cx, word [edi + ecx*2]
mov al, cl
shl al, 3
and eax, 0xff
imul eax, edx
add ebx, eax
mov eax, ecx
shr eax, 2
and eax, 0xf8
mov dword [esp + 0x78], ebx
shr ecx, 7
imul eax, edx
and ecx, 0xf8
mov ebx, dword [esp + 0x7c]
imul ecx, edx
mov edx, dword [esp + 0x80]
add ebx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
dec eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x10], eax
jne 0x4a92ec
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x78]
add ecx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x7c]
mov byte [esi - 1], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x80]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x18]
mov byte [esi - 1], dl
dec eax
mov dword [esp + 0x18], eax
jne 0x4a92ce
jmp case.0x4a8d39.6
mov eax, dword [esp + 0x90]
test eax, eax
jle case.0x4a8d39.6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
jle 0x4a9447
mov ebp, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
xor eax, eax
mov ebx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
add ebp, 8
mov al, byte [ecx + edi]
imul eax, edx
add ebx, eax
xor eax, eax
mov al, byte [ecx + edi + 1]
mov dword [esp + 0x40], ebx
imul eax, edx
mov ebx, dword [esp + 0x44]
add ebx, eax
xor eax, eax
mov al, byte [ecx + edi + 2]
mov dword [esp + 0x44], ebx
imul eax, edx
mov edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], eax
jne 0x4a93f4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
add ecx, 8
cdq
and edx, 0xffff
mov dword [esp + 0x14], ecx
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x44]
mov byte [esi - 1], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov al, byte [eax + 0x559b20]
mov byte [esi - 1], al
mov eax, dword [esp + 0x48]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
inc esi
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x18]
mov byte [esi - 1], dl
dec eax
mov dword [esp + 0x18], eax
jne 0x4a93d9
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x4a951a
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xd0]
mov ebx, dword [esp + 0x24]
lea esi, [eax + ecx]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
mov eax, dword [edx + 4]
push esi
imul eax, ebx
push 0x64
push eax
call ebp
mov edx, dword [esp + 0xd0]
lea ecx, [ebx - 1]
push esi
push 0x64
imul ecx, dword [edx + 4]
push ecx
mov edi, eax
call ebp
cmp edi, eax
je 0x4a951e
mov eax, dword [esp + 0xe4]
push 0x64
push edi
push eax
call dword [esp + 0xec]
test eax, eax
je 0x4a96c2
jmp 0x4a951e
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
add edx, ecx
inc ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x24], ebx
cmp ebx, dword [edx + 8]
jl 0x4a8cf9
mov eax, dword [esp + 0x9a]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0xd0]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], 0
test ecx, ecx
jle 0x4a9919
and eax, 0xffff
mov dword [esp + 0x14], esi
mov ebp, eax
imul eax, dword [esp + 0x94]
mov edx, eax
mov eax, 0x55555556
imul edx
imul ebp, dword [esp + 0x90]
mov eax, edx
add ebp, 0x1f
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], edx
mov edx, esi
mov dword [esp + 0x24], eax
sub edx, eax
sub eax, esi
mov dword [esp + 0xc0], edx
sar ebp, 3
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
and ebp, 0xfffffffc
sub eax, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0xb8], eax
mov edx, dword [esp + 0xd0]
xor ebx, ebx
mov ax, word [edx + 0xe]
mov esi, eax
and esi, 0xffff
imul esi, ecx
add esi, 0x1f
sar esi, 3
and esi, 0xfffffffc
cmp ax, 8
mov eax, dword [esp + 0x74]
mov dword [esp + 0xbc], esi
push eax
sete bl
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
test ebx, ebx
je 0x4a96cf
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add edx, ecx
xor eax, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x94]
test edx, edx
jle 0x4a9637
mov bl, byte [ecx]
add ecx, esi
mov byte [eax + edi], bl
inc eax
cmp eax, edx
jl 0x4a962b
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 8]
test ecx, ecx
jle 0x4a9855
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
xor eax, eax
test edx, edx
jle 0x4a9681
mov ecx, dword [ecx + 4]
mov ebp, edx
mov edx, dword [ecx]
xor ebx, ebx
add ecx, 8
mov bl, byte [edi + edx]
imul ebx, dword [ecx - 4]
add eax, ebx
dec ebp
jne 0x4a9666
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cdq
and edx, 0xffff
add ecx, 8
add eax, edx
mov dword [esp + 0x18], ecx
sar eax, 0x10
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x10]
mov byte [eax], dl
mov edx, dword [esp + 0xd0]
add eax, esi
mov ebx, dword [edx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x4a9659
jmp 0x4a9855
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb4
ret
cmp word [esp + 0x9a], 8
jne 0x4a9722
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
test ecx, ecx
mov eax, edi
jle 0x4a9753
mov dword [esp + 0x10], ecx
xor ecx, ecx
inc eax
mov cl, byte [edx]
inc eax
inc eax
add edx, ebp
mov bl, byte [esp + ecx*4 + 0xb4]
lea ecx, [esp + ecx*4 + 0xb4]
mov byte [eax - 3], bl
mov bl, byte [ecx + 1]
mov byte [eax - 2], bl
mov cl, byte [ecx + 2]
mov byte [eax - 1], cl
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4a96ef
jmp 0x4a9753
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x24]
lea ecx, [edx + eax]
mov edx, dword [esp + 0x94]
test edx, edx
mov eax, edi
jle 0x4a9753
mov bl, byte [ecx]
mov byte [eax], bl
mov bl, byte [ecx + 1]
inc eax
mov byte [eax], bl
mov bl, byte [ecx + 2]
inc eax
add ecx, ebp
mov byte [eax], bl
inc eax
dec edx
jne 0x4a973d
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [edx + 8]
test eax, eax
jle 0x4a9855
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x48], ebx
mov eax, dword [edx]
test eax, eax
jle 0x4a97df
mov esi, dword [edx + 4]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, eax
add esi, 8
lea ecx, [ecx + ecx*2]
mov al, byte [ecx + edi]
imul eax, edx
add ebp, eax
inc ecx
xor eax, eax
mov al, byte [ecx + edi]
imul eax, edx
add ebx, eax
xor eax, eax
mov al, byte [ecx + edi + 1]
imul eax, edx
mov edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], eax
jne 0x4a9796
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0xbc]
mov eax, ebp
mov ebp, dword [esp + 0x10]
cdq
and edx, 0xffff
add ebp, 8
add eax, edx
mov dword [esp + 0x10], ebp
sar eax, 0x10
mov dl, byte [eax + 0x559b20]
mov eax, ebx
mov byte [ecx], dl
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov al, byte [eax + 0x559b20]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x48]
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
mov dl, byte [eax + 0x559b20]
mov eax, dword [esp + 0x2c]
mov byte [ecx + 2], dl
mov edx, dword [esp + 0xd0]
add ecx, esi
inc eax
mov ebx, dword [edx + 8]
mov dword [esp + 0x18], ecx
cmp eax, ebx
mov dword [esp + 0x2c], eax
jl 0x4a977d
mov ebp, dword [esp + 0x20]
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0xe4]
add esp, 4
test eax, eax
je 0x4a98d5
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
imul ecx, dword [edx + 8]
lea esi, [eax + edi]
add ecx, edi
push esi
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xd0]
mov ebx, eax
mov eax, dword [esp + 0xb8]
add eax, ecx
push esi
imul eax, dword [edx + 8]
add eax, edi
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp ebx, eax
je 0x4a98d5
mov eax, dword [esp + 0xe4]
push 0x64
push ebx
push eax
call dword [esp + 0xec]
test eax, eax
je 0x4a9906
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
inc eax
inc edi
add esi, 3
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
jl 0x4a95ca
jmp 0x4a990e
mov dword [esp + 0x4c], 1
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0xd0]
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
jle 0x4a9940
mov edx, dword [esp + 0x38]
lea ebp, [edx + 4]
mov eax, dword [ebp]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 4]
add esp, 4
inc edi
add ebp, 8
cmp edi, eax
jl 0x4a9929
mov ecx, dword [esp + 0x38]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 8]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4a9974
mov edx, dword [esp + 0x34]
lea ebp, [edx + 4]
mov eax, dword [ebp]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebx + 8]
add esp, 4
inc edi
add ebp, 8
cmp edi, eax
jl 0x4a995d
mov ecx, dword [esp + 0x34]
push ecx
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x54]
add esp, 8
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
sete al
add esp, 0xb4
ret