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

Disassembly:
sub esp, 0xfc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
cmp esi, 0x320
push edi
mov ebx, ecx
jg 0x4626d6
mov ebp, dword [esp + 0x118]
lea edi, [esi + ebp]
test edi, edi
jl 0x4626d6
mov ecx, dword [esp + 0x114]
cmp ecx, 0x258
jg 0x4626d6
mov edx, dword [esp + 0x11c]
lea eax, [ecx + edx]
test eax, eax
jl 0x4626d6
cmp edi, 0x320
jle 0x461f3b
mov edi, 0x320
sub edi, esi
mov dword [esp + 0x3c], edi
jmp 0x461f3f
mov dword [esp + 0x3c], ebp
xor edi, edi
cmp esi, edi
jge 0x461f51
mov ebp, esi
neg ebp
mov dword [esp + 0x34], ebp
xor esi, esi
jmp 0x461f57
mov dword [esp + 0x34], edi
mov ebp, edi
cmp eax, 0x258
jle 0x461f67
mov eax, 0x258
sub eax, ecx
jmp 0x461f69
mov eax, edx
cmp ecx, edi
jge 0x461f7c
neg ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x114], edi
jmp 0x461f82
mov dword [esp + 0x38], edi
mov ecx, edi
sub eax, ecx
mov ecx, 0x1f
mov dword [esp + 0x24], eax
xor eax, eax
lea edi, [esp + 0x90]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x94]
push 1
mov dword [esp + 0x98], 0x7c
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x64]
test eax, eax
jge 0x461fcd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xfc
ret 0x28
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xb4]
sar ecx, 1
mov eax, ecx
mov dword [esp + 0x58], ecx
imul eax, dword [esp + 0x114]
add eax, esi
mov esi, dword [esp + 0x120]
lea eax, [edx + eax*2]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x462015
xor edx, edx
dec eax
mov dx, word [esi]
lea edx, [esi + edx*2 + 2]
mov dword [esp + 0x14], edx
mov esi, edx
jne 0x462003
mov eax, dword [esp + 0x114]
mov edx, dword [esp + 0x24]
add edx, eax
mov dword [esp + 0x50], eax
cmp eax, edx
mov dword [esp + 0x5c], edx
jge 0x4626c8
xor eax, eax
xor edi, edi
mov ax, word [esi]
mov dword [esp + 0x10], edi
lea eax, [esi + eax*2 + 2]
add esi, 2
cmp esi, eax
mov dword [esp + 0x70], eax
jae 0x4626ac
mov ax, word [esi]
cmp ax, 0xc0
jne 0x46206f
add esi, 2
xor ecx, ecx
mov cx, word [esi]
add edi, ecx
add esi, 2
mov dword [esp + 0x10], edi
jmp 0x46269a
cmp ax, 0xc1
jne 0x462399
add esi, 2
xor ecx, ecx
mov cx, word [esi]
add esi, 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea eax, [ecx + edi]
cmp eax, ebp
mov dword [esp + 0x20], eax
jle 0x462381
mov eax, dword [esp + 0x3c]
cmp edi, eax
jge 0x462381
cmp edi, ebp
jge 0x4620c6
mov edx, ebp
mov dword [esp + 0x10], ebp
sub edx, edi
sub edi, ebp
add ecx, edi
mov edi, ebp
lea edx, [esi + edx*2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov esi, edx
lea edx, [ecx + edi]
cmp edx, eax
mov dword [esp + 0x20], edx
jle 0x46222b
mov edx, dword [esp + 0x28]
sub eax, edi
sub edi, ebp
mov ebp, dword [esp + 0x134]
and ebp, 0xff
mov dword [esp + 0x24], eax
lea edi, [edx + edi*2]
mov edx, 0x20
sub edx, ebp
mov dword [esp + 0x10], esi
test al, 1
je 0x46218b
xor eax, eax
mov ax, word [esi]
add esi, 2
mov ecx, eax
mov dword [esp + 0x10], esi
shr eax, 5
and ecx, 0x7e0f81f
and eax, 0x7c0f83f
imul ecx, ebp
imul eax, ebp
shr ecx, 5
and eax, 0xf81f07e0
and ecx, 0x7e0f81f
mov dword [0x917c20], eax
or ecx, eax
xor eax, eax
mov dword [0x917c24], ecx
mov ax, word [edi]
mov esi, eax
shr eax, 5
and esi, 0x7e0f81f
and eax, 0x7c0f83f
imul esi, edx
imul eax, edx
shr esi, 5
and eax, 0xf81f07e0
and esi, 0x7e0f81f
or esi, eax
mov dword [0x917c28], eax
mov eax, dword [esp + 0x24]
add ecx, esi
mov dword [0x917c2c], esi
mov esi, dword [esp + 0x14]
mov word [edi], cx
mov ecx, dword [esp + 0x18]
add edi, 2
sar eax, 1
test eax, eax
jle 0x46237d
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add edi, 4
mov eax, dword [eax]
mov ecx, eax
shr eax, 5
and ecx, 0x7e0f81f
and eax, 0x7c0f83f
imul ecx, ebp
imul eax, ebp
shr ecx, 5
and eax, 0xf81f07e0
and ecx, 0x7e0f81f
or ecx, eax
mov dword [0x917c20], eax
mov dword [0x917c24], ecx
mov eax, dword [edi - 4]
mov esi, eax
shr eax, 5
and esi, 0x7e0f81f
and eax, 0x7c0f83f
imul esi, edx
imul eax, edx
shr esi, 5
and eax, 0xf81f07e0
and esi, 0x7e0f81f
or esi, eax
mov dword [0x917c28], eax
mov eax, dword [esp + 0x1c]
mov dword [0x917c2c], esi
add esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [edi - 4], esi
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x462199
jmp 0x462375
mov edx, dword [esp + 0x28]
sub edi, ebp
mov ebp, 0x20
mov dword [esp + 0x10], esi
lea edi, [edx + edi*2]
mov edx, dword [esp + 0x134]
and edx, 0xff
sub ebp, edx
test cl, 1
je 0x4622d8
xor eax, eax
mov ax, word [esi]
add esi, 2
mov ecx, eax
mov dword [esp + 0x10], esi
shr eax, 5
and ecx, 0x7e0f81f
and eax, 0x7c0f83f
imul ecx, edx
imul eax, edx
shr ecx, 5
and eax, 0xf81f07e0
and ecx, 0x7e0f81f
mov dword [0x917c20], eax
or ecx, eax
xor eax, eax
mov dword [0x917c24], ecx
mov ax, word [edi]
mov esi, eax
shr eax, 5
and esi, 0x7e0f81f
and eax, 0x7c0f83f
imul esi, ebp
imul eax, ebp
shr esi, 5
and eax, 0xf81f07e0
and esi, 0x7e0f81f
or esi, eax
mov dword [0x917c28], eax
add ecx, esi
mov dword [0x917c2c], esi
mov esi, dword [esp + 0x14]
mov word [edi], cx
mov ecx, dword [esp + 0x18]
add edi, 2
mov eax, ecx
sar eax, 1
test eax, eax
jle 0x46237d
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add edi, 4
mov eax, dword [eax]
mov ecx, eax
shr eax, 5
and ecx, 0x7e0f81f
and eax, 0x7c0f83f
imul ecx, edx
imul eax, edx
shr ecx, 5
and eax, 0xf81f07e0
and ecx, 0x7e0f81f
or ecx, eax
mov dword [0x917c20], eax
mov dword [0x917c24], ecx
mov eax, dword [edi - 4]
mov esi, eax
shr eax, 5
and esi, 0x7e0f81f
and eax, 0x7c0f83f
imul esi, ebp
imul eax, ebp
shr esi, 5
and eax, 0xf81f07e0
and esi, 0x7e0f81f
or esi, eax
mov dword [0x917c28], eax
mov eax, dword [esp + 0x1c]
mov dword [0x917c2c], esi
add esi, ecx
mov ecx, dword [esp + 0x10]
mov dword [edi - 4], esi
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x4622e8
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov esi, ecx
mov edi, edx
jmp 0x46269a
cmp ax, 0xc2
je 0x4623af
cmp ax, 0xc3
jne 0x4626e8
cmp ax, 0xc2
jne 0x4623b8
mov ebp, dword [esp + 0x12c]
jmp 0x4623bf
mov ebp, dword [esp + 0x130]
mov ecx, dword [ebx + 0x6c]
and ebp, 0xffff
mov eax, ebp
mov edx, ebp
and eax, ecx
mov cl, byte [ebx + 0x67]
shr eax, cl
mov ecx, dword [ebx + 0x70]
add esi, 2
and edx, ecx
mov cl, byte [ebx + 0x68]
shr edx, cl
mov cl, byte [ebx + 0x69]
mov byte [esp + 0x6c], al
mov eax, ebp
mov ebp, dword [ebx + 0x74]
and eax, ebp
add esi, 2
shr eax, cl
xor ecx, ecx
mov byte [esp + 0x64], dl
mov cx, word [esi - 2]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov byte [esp + 0x68], al
mov eax, dword [esp + 0x34]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x462687
cmp edi, dword [esp + 0x3c]
jge 0x462687
cmp edi, eax
jge 0x462441
mov edx, eax
mov dword [esp + 0x10], eax
sub edx, edi
sub edi, eax
add ecx, edi
mov edi, eax
lea edx, [esi + edx*2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov esi, edx
mov edx, edi
mov dword [esp + 0x20], 0
sub edx, eax
mov eax, dword [esp + 0x28]
test ecx, ecx
lea eax, [eax + edx*2]
jle 0x462687
mov dword [esp + 0x1c], esi
jmp 0x46246a
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x3c]
add edx, edi
cmp edx, ebp
jg 0x462687
mov edx, dword [ebx + 0x70]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
xor edx, edx
mov dl, byte [ebx + 0x68]
mov si, word [ecx]
mov dword [esp + 0x48], edx
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x2c], edx
add eax, 2
xor edx, edx
mov dl, byte [ebx + 0x67]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x44], edx
and esi, 0xffff
xor ecx, ecx
mov cl, byte [ebx + 0x69]
mov edx, eax
and edx, esi
mov dword [esp + 0x7c], 0
shr edx, cl
shr eax, cl
mov edi, dword [esp + 0x134]
mov ebp, 0x20
and edi, 0xff
mov dword [esp + 0x24], esi
and edx, 0xff
sub ebp, edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x78], eax
fild dword [esp + 0x4c]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
and eax, 0xff
fidiv dword [esp + 0x78]
mov dword [esp + 0x4c], eax
fimul dword [esp + 0x4c]
call fcn.00468520
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x84], 0
movzx si, al
mov eax, dword [esp + 0x30]
shl esi, cl
mov ecx, dword [esp + 0x24]
mov edx, eax
and edx, ecx
mov ecx, dword [esp + 0x48]
shr edx, cl
shr eax, cl
and esi, 0xffff
and edx, 0xff
mov dword [esp + 0x30], edx
mov dword [esp + 0x80], eax
fild dword [esp + 0x30]
mov eax, dword [esp + 0x64]
and eax, 0xff
fidiv dword [esp + 0x80]
mov dword [esp + 0x30], eax
fimul dword [esp + 0x30]
call fcn.00468520
mov ecx, dword [esp + 0x48]
xor dx, dx
mov dl, al
mov eax, dword [esp + 0x2c]
shl edx, cl
mov ecx, dword [esp + 0x24]
and edx, 0xffff
or esi, edx
mov edx, eax
and edx, ecx
mov ecx, dword [esp + 0x44]
shr edx, cl
and edx, 0xff
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
shr eax, cl
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x6c]
fidiv dword [esp + 0x88]
and eax, 0xff
mov dword [esp + 0x2c], eax
fimul dword [esp + 0x2c]
call fcn.00468520
mov ecx, dword [esp + 0x44]
xor dx, dx
mov dl, al
shl edx, cl
and edx, 0xffff
or esi, edx
mov eax, esi
shr esi, 5
and eax, 0x7e0f81f
and esi, 0x7c0f83f
imul eax, edi
imul esi, edi
shr eax, 5
and esi, 0xf81f07e0
and eax, 0x7e0f81f
or eax, esi
mov dword [0x917c30], esi
mov esi, dword [esp + 0x74]
mov edx, eax
xor eax, eax
mov dword [0x917c34], edx
mov ax, word [esi]
mov edi, dword [esp + 0x10]
mov ecx, eax
shr eax, 5
and ecx, 0x7e0f81f
and eax, 0x7c0f83f
imul ecx, ebp
imul eax, ebp
shr ecx, 5
and eax, 0xf81f07e0
and ecx, 0x7e0f81f
or ecx, eax
mov dword [0x917c38], eax
mov eax, dword [esp + 0x20]
add edx, ecx
mov dword [0x917c3c], ecx
mov ecx, dword [esp + 0x18]
mov word [esi], dx
mov edx, dword [esp + 0x1c]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x462462
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
lea eax, [esi + ecx*2]
add edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov esi, eax
cmp esi, dword [esp + 0x70]
jb 0x462050
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
lea eax, [eax + ecx*2]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x50]
inc eax
cmp eax, edx
mov dword [esp + 0x50], eax
jl 0x462032
mov ebx, dword [ebx + 0x1c]
push 0
push ebx
mov edx, dword [ebx]
call dword [edx + 0x80]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xfc
ret 0x28
mov ebx, dword [ebx + 0x1c]
push 0
push ebx
mov ecx, dword [ebx]
call dword [ecx + 0x80]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xfc
ret 0x28