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

Disassembly:
push 0xffffffffffffffff
push 0x59db0b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov edx, dword [esp + 0x264]
mov ecx, dword [esp + 0x260]
test ecx, ecx
mov ebp, dword [esp + 0x25c]
je 0x4e6b1d
test edx, edx
je 0x4e6b1d
mov eax, dword [ebp + 0xc]
cmp eax, ecx
mov dword [esp + 0x2c], eax
jne 0x4e6a04
cmp dword [ebp + 0x10], edx
je 0x4e74a6
fild dword [esp + 0x2c]
push 0
lea esi, [esp + 0x80]
mov dword [esp + 0x80], vtable.CxImage.0
fidiv dword [esp + 0x264]
fstp dword [esp + 0x64]
fild dword [ebp + 0x10]
fidiv dword [esp + 0x268]
fstp dword [esp + 0x58]
call fcn.004e4970
mov dword [esp + 0x254], 0
cmp dword [esp + 0x80], 0
jne 0x4e6a60
lea esi, [ebp + 0x30]
mov ecx, 0x62
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x40]
mov edi, dword [esp + 0x264]
mov ecx, dword [esp + 0x260]
push eax
movzx eax, word [ebp + 0x16]
push edi
push ecx
lea ebx, [esp + 0x88]
call fcn.004e4d10
mov eax, dword [ebp + 4]
test eax, eax
mov esi, dword [esp + 0x80]
je 0x4e6ad8
cmp dword [ebp + 0x28], 0
je 0x4e6ad8
lea edx, [eax + 0x28]
test edx, edx
je 0x4e6ad8
test esi, esi
je 0x4e6adc
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4e6ad8
lea ecx, [eax*4]
cmp ecx, 0x400
jb 0x4e6ac2
mov ecx, 0x400
push ecx
lea eax, [esi + 0x28]
push edx
push eax
call fcn.0057e7b0
add esp, 0xc
mov byte [esp + 0x225], 0
test esi, esi
jne 0x4e6b49
lea eax, [esp + 0xc0]
mov edx, eax
sub ebp, edx
add ebp, 0x44
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x4e6af0
mov dword [esp + 0x254], 0xffffffff
lea esi, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CxImage.0
call fcn.004e4af0
call fcn.004e4a40
xor al, al
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005787fd
add esp, 0x244
ret 0xc
mov eax, dword [ebp + 0xc]
fld dword [esp + 0x60]
cmp eax, dword [esp + 0x260]
fld dword [esp + 0x54]
jle 0x4e6fd6
cmp dword [ebp + 0x10], edi
jle 0x4e6fd6
cmp word [ebp + 0x16], 0x18
jne 0x4e6fd6
mov eax, dword [esp + 0xb0]
fstp st(1)
mov dword [esp + 0x40], eax
fstp st(0)
mov eax, dword [esp + 0x260]
lea esi, [eax + eax*2]
mov dword [esp + 0x14], esi
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00578e5f
mov edi, eax
xor ecx, ecx
add esp, 4
mov eax, esi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x34], edi
neg ecx
or ecx, eax
push ecx
call fcn.00578e5f
fld dword [esp + 0x64]
fmul qword [0x5d1490]
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
fmul dword [esp + 0x54]
call fcn.005999a0
mov esi, dword [esp + 0x260]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
push esi
push 0
push edi
mov dword [esp + 0x48], eax
call fcn.00580260
add esp, 0xc
push esi
xor esi, esi
push esi
push ebx
call fcn.00580260
fld dword [esp + 0x60]
fld qword [0x5ca998]
add esp, 0xc
cmp dword [ebp + 0x10], esi
fsub st(1), st(0)
fxch st(1)
mov dword [esp + 0x38], esi
mov dword [esp + 0x48], esi
fstp dword [esp + 0x30]
jle 0x4e6f7a
mov eax, dword [esp + 0xb0]
fld dword [esp + 0x30]
fld qword [0x5d1490]
mov dword [esp + 0x44], esi
fld dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov ebx, edi
mov eax, dword [esp + 0x44]
cdq
idiv dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 0x148], edi
mov dword [ebp + 0x144], eax
jne 0x4e6f74
mov esi, dword [ebp + 0x30]
fld st(0)
imul esi, dword [esp + 0x48]
fsub st(4)
fstp dword [esp + 0x1c]
fild dword [esp + 0x48]
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
add esi, dword [ebp + 0x34]
fcom st(3)
mov dword [esp + 0x30], edi
fnstsw ax
test ah, 5
jp 0x4e6d4a
cmp dword [ebp + 0xc], edi
fstp st(0)
mov dword [esp + 0x18], edi
jle 0x4e6f5b
fld dword [esp + 0x1c]
fild dword [esp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4e6ced
fstp st(0)
lea eax, [ebx + edi*4]
mov ecx, 3
movzx edx, byte [esi]
imul edx, edx, 0x3e8
add dword [eax], edx
add esi, 1
add eax, 4
sub ecx, 1
jne 0x4e6cd5
jmp 0x4e6d2f
fsub st(1)
fmul st(3)
call fcn.005999a0
mov ecx, 0x3e8
sub ecx, eax
mov dword [esp + 0x30], 3
movzx edx, byte [esi]
imul edx, ecx
add dword [ebx + edi*4], edx
movzx edx, byte [esi]
imul edx, eax
add dword [ebx + edi*4 + 0xc], edx
add esi, 1
add edi, 1
sub dword [esp + 0x30], 1
jne 0x4e6d05
fadd st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
jl 0x4e6cb6
fstp st(0)
jmp 0x4e6f5b
fsub st(3)
fmul st(2)
call fcn.005999a0
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], 0
jle 0x4e6ee9
fld dword [esp + 0x1c]
mov ecx, 0x3e8
sub ecx, eax
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4e6dd1
mov ecx, dword [esp + 0x28]
fstp st(0)
mov edx, ebx
sub edx, ecx
lea eax, [ecx + edi*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], 3
movzx edx, byte [esi]
imul edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
add dword [ecx + eax], edx
movzx ecx, byte [esi]
imul ecx, dword [esp + 0x50]
add dword [eax], ecx
add esi, 1
add eax, 4
sub dword [esp + 0x24], 1
jne 0x4e6da6
jmp 0x4e6ed3
fsub st(1)
fmul st(3)
call fcn.005999a0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov ebx, eax
mov eax, 0x3e8
sub eax, ebx
imul ecx, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
sub edx, eax
mov dword [esp + 0x1c], ecx
lea ecx, [eax + edi*4 + 0xc]
mov dword [esp + 0x64], edx
mov dword [esp + 0x24], 3
movzx edx, byte [esi]
imul edx, dword [esp + 0x1c]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [ecx - 0xc], eax
mov eax, dword [ecx - 0xc]
cdq
idiv dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add edx, 1
mov dword [esp + 0x40], edx
add edi, 1
add ecx, 4
add esi, 1
mov byte [edx - 1], al
movzx edx, byte [esi - 1]
imul edx, dword [esp + 0x50]
imul edx, dword [esp + 0x68]
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
add dword [eax + edi*4 - 4], edx
movzx edx, byte [esi - 1]
imul edx, dword [esp + 0x4c]
imul edx, ebx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [ecx - 4], eax
movzx edx, byte [esi - 1]
imul edx, dword [esp + 0x50]
imul edx, ebx
mov eax, 0x10624dd3
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub dword [esp + 0x24], 1
mov edx, dword [esp + 0x64]
mov dword [edx + ecx - 4], eax
jne 0x4e6e0c
add dword [esp + 0x30], 1
fadd st(1)
mov ebx, dword [esp + 0x34]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
jl 0x4e6d78
fstp st(0)
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x260]
jge 0x4e6f17
mov ecx, dword [esp + 0x40]
lea edi, [ebx + edi*4]
mov esi, 3
mov eax, dword [edi]
cdq
idiv dword [esp + 0x3c]
add ecx, 1
add edi, 4
sub esi, 1
mov byte [ecx - 1], al
jne 0x4e6f02
mov ecx, dword [esp + 0x28]
fld dword [esp + 0x54]
add dword [esp + 0x38], 1
faddp st(3)
mov eax, ebx
fxch st(2)
mov ebx, ecx
xor ecx, ecx
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
mov dword [eax], ecx
mov dword [eax + 4], ecx
fxch st(2)
mov dword [esp + 0x28], eax
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0xac]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x44], 0x64
add eax, 1
cmp eax, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
jl 0x4e6c57
fstp st(1)
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x38]
fstp st(0)
cmp ecx, dword [esp + 0x264]
jge 0x4e6fb7
mov ebx, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x4e6fb7
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
jmp 0x4e6fa0
mov eax, dword [edi + ecx*4]
cdq
idiv dword [esp + 0x3c]
add ecx, 1
add esi, 1
cmp ecx, ebx
mov byte [esi - 1], al
jl 0x4e6fa0
jmp 0x4e6fbb
mov edi, dword [esp + 0x34]
push edi
call fcn.00578327
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.00578327
add esp, 4
jmp 0x4e7375
add eax, 0xffffffff
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
test edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
jle 0x4e7371
mov esi, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov edi, eax
mov eax, dword [esp + 0x38]
cdq
idiv dword [esp + 0x264]
cmp dword [ebp + 0x148], 0
mov dword [ebp + 0x144], eax
jne 0x4e7371
fild dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fld st(0)
call fcn.005999a0
mov dword [esp + 0x48], eax
add eax, 1
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x4e704c
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x260], 0
fisub dword [esp + 0x48]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x14]
jle 0x4e7358
fld dword [esp + 0x14]
fild dword [esp + 0x3c]
fmul st(3)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fld st(0)
call fcn.005999a0
mov edi, dword [esp + 0x64]
mov ebx, eax
lea eax, [ebx + 1]
cmp edi, eax
mov dword [esp + 0x14], ebx
jl 0x4e7096
mov edi, eax
cmp dword [ebp + 0x28], 0
fisub dword [esp + 0x14]
fstp dword [esp + 0x30]
je 0x4e7131
mov esi, dword [esp + 0x48]
mov ecx, ebx
mov eax, ebp
call fcn.004e3f10
mov ecx, ebp
push eax
lea eax, [esp + 0x7c]
call fcn.004e3eb0
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov ecx, edi
mov eax, ebp
call fcn.004e3f10
mov ecx, ebp
push eax
lea eax, [esp + 0x70]
call fcn.004e3eb0
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov ecx, ebx
mov eax, ebp
call fcn.004e3f10
mov ecx, ebp
push eax
lea eax, [esp + 0x74]
call fcn.004e3eb0
mov edx, dword [eax]
mov ecx, edi
mov eax, ebp
mov dword [esp + 0x28], edx
call fcn.004e3f10
mov ecx, ebp
push eax
lea eax, [esp + 0x78]
call fcn.004e3eb0
mov eax, dword [eax]
mov bl, byte [esp + 0x41]
mov cl, byte [esp + 0x35]
mov dword [esp + 0x4c], eax
mov al, byte [esp + 0x4e]
mov dl, byte [esp + 0x4d]
jmp 0x4e71b3
mov eax, dword [ebp + 0x30]
mov esi, dword [ebp + 0x34]
mov ecx, eax
imul eax, dword [esp + 0x1c]
imul ecx, dword [esp + 0x48]
lea edx, [ecx + esi]
lea ebx, [ebx + ebx*2]
lea ecx, [ebx + edx]
mov dword [esp + 0x14], ebx
movzx ebx, byte [ecx]
add ecx, 1
mov byte [esp + 0x40], bl
mov bl, byte [ecx]
movzx ecx, byte [ecx + 1]
lea edi, [edi + edi*2]
add edx, edi
add edx, 1
mov byte [esp + 0x42], cl
movzx ecx, byte [edx - 1]
add esi, eax
mov eax, dword [esp + 0x14]
add eax, esi
mov byte [esp + 0x34], cl
mov cl, byte [edx]
movzx edx, byte [edx + 1]
mov byte [esp + 0x36], dl
movzx edx, byte [eax]
add eax, 1
mov byte [esp + 0x28], dl
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
mov byte [esp + 0x2a], al
lea eax, [esi + edi]
mov byte [esp + 0x29], dl
movzx edx, byte [eax]
add eax, 1
mov byte [esp + 0x4c], dl
mov dl, byte [eax]
add eax, 1
mov al, byte [eax]
movzx esi, byte [esp + 0x42]
fnstcw word [esp + 0x18]
movzx edi, byte [esp + 0x2a]
sub edi, esi
mov dword [esp + 0x14], edi
movzx edi, byte [esp + 0x29]
fild dword [esp + 0x14]
mov dword [esp + 0x20], esi
movzx esi, bl
fmul st(1)
sub edi, esi
fiadd dword [esp + 0x20]
mov dword [esp + 0x14], edi
movzx edi, byte [esp + 0x28]
mov dword [esp + 0x20], esi
movzx esi, byte [esp + 0x40]
fstp dword [esp + 0x44]
fild dword [esp + 0x14]
sub edi, esi
mov dword [esp + 0x14], edi
movzx eax, al
fmul st(1)
fiadd dword [esp + 0x20]
mov dword [esp + 0x20], esi
movzx esi, byte [esp + 0x36]
sub eax, esi
fstp dword [esp + 0x58]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
movzx eax, cl
movzx ecx, dl
fmul st(1)
movzx edx, byte [esp + 0x4c]
fiadd dword [esp + 0x20]
mov dword [esp + 0x20], esi
sub ecx, eax
fstp dword [esp + 0x5c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmul st(1)
fiadd dword [esp + 0x20]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x34]
sub edx, eax
fstp dword [esp + 0x68]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul st(1)
fiadd dword [esp + 0x20]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x18]
or eax, 0xc00
fstp dword [esp + 0x50]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul st(1)
fiadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x68]
fld dword [esp + 0x44]
fld st(0)
fsubp st(2)
fld dword [esp + 0x30]
fld st(0)
fmulp st(3)
fxch st(2)
faddp st(1)
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov cl, byte [esp + 0x14]
fldcw word [esp + 0x18]
fld dword [esp + 0x50]
fld dword [esp + 0x58]
fld st(0)
fsubp st(2)
fnstcw word [esp + 0x18]
fld st(2)
movzx eax, word [esp + 0x18]
fmulp st(2)
or eax, 0xc00
faddp st(1)
mov dword [esp + 0x58], eax
fldcw word [esp + 0x58]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
xor ebx, ebx
push esi
fistp dword [esp + 0x5c]
mov dl, byte [esp + 0x5c]
fldcw word [esp + 0x1c]
fld dword [esp + 0x24]
fld dword [esp + 0x60]
fld st(0)
fsubp st(2)
fnstcw word [esp + 0x1c]
fxch st(1)
movzx eax, word [esp + 0x1c]
fmulp st(2)
or eax, 0xc00
mov dword [esp + 0x60], eax
faddp st(1)
fldcw word [esp + 0x60]
fistp dword [esp + 0x60]
mov al, byte [esp + 0x60]
mov bh, al
movzx eax, cl
fldcw word [esp + 0x1c]
mov bl, dl
shl ebx, 8
or ebx, eax
mov ecx, ebx
lea eax, [esp + 0x80]
call fcn.004e4390
add edi, 1
cmp edi, dword [esp + 0x260]
mov dword [esp + 0x3c], edi
jl 0x4e706e
mov edi, dword [esp + 0x2c]
fstp st(0)
add dword [esp + 0x38], 0x64
add esi, 1
cmp esi, dword [esp + 0x264]
mov dword [esp + 0x24], esi
jl 0x4e7005
fstp st(1)
fstp st(0)
cmp dword [ebp + 0x1bc], 0
je 0x4e7474
lea esi, [esp + 0x7c]
call fcn.004e7690
xor ebx, ebx
cmp dword [esp + 0x264], ebx
mov dword [esp + 0x2c], ebx
jle 0x4e7474
mov ecx, dword [esp + 0x238]
fld dword [esp + 0x54]
fld dword [esp + 0x60]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x2c]
xor esi, esi
cmp dword [esp + 0x260], esi
mov dword [esp + 0x2c], esi
fmul st(2)
fstp dword [esp + 0x3c]
jle 0x4e7451
fld dword [esp + 0x3c]
call fcn.005999a0
mov edi, eax
fild dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
call fcn.005999a0
mov edx, dword [ebp + 0x1bc]
test edx, edx
je 0x4e7414
test edi, edi
jl 0x4e7414
cmp edi, dword [ebp + 0x10]
jge 0x4e7414
test eax, eax
jl 0x4e7414
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jge 0x4e7414
imul ecx, edi
add ecx, edx
mov al, byte [ecx + eax]
jmp 0x4e7416
xor al, al
cmp dword [esp + 0x238], 0
je 0x4e7441
test ebx, ebx
jl 0x4e7441
cmp ebx, dword [esp + 0x8c]
jge 0x4e7441
test esi, esi
jl 0x4e7441
cmp esi, dword [esp + 0x88]
jge 0x4e7441
mov edx, dword [esp + 0x38]
mov byte [edx + esi], al
add esi, 1
cmp esi, dword [esp + 0x260]
mov dword [esp + 0x2c], esi
jl 0x4e73d9
mov eax, dword [esp + 0x88]
add dword [esp + 0x38], eax
add ebx, 1
cmp ebx, dword [esp + 0x264]
mov dword [esp + 0x2c], ebx
jl 0x4e73b1
fstp st(0)
fstp st(0)
push 1
lea ecx, [esp + 0x80]
push ecx
mov ebx, ebp
call fcn.004e4f50
mov dword [esp + 0x254], 0xffffffff
lea esi, [esp + 0x7c]
mov dword [esp + 0x7c], vtable.CxImage.0
call fcn.004e4af0
call fcn.004e4a40
mov al, 1
jmp 0x4e6b1f