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

Disassembly:
sub esp, 0x134
mov eax, dword [esp + 0x144]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x158]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x154]
push esi
mov esi, dword [ebp + 0x1c]
and eax, 0xffff
xor ebx, ebx
and ecx, 0xffff
push edi
mov edi, dword [esp + 0x150]
dec eax
dec ecx
cmp esi, ebx
mov edx, edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebx
je 0x460c94
mov esi, dword [esp + 0x148]
test esi, esi
jge 0x4602ac
neg esi
mov dword [esp + 0x3c], esi
sub edx, esi
mov ebx, esi
mov esi, dword [esp + 0x148]
lea edi, [esi + edi - 1]
cmp edi, eax
jle 0x4602bb
sub eax, ebx
sub eax, esi
inc eax
mov edx, eax
mov edi, dword [esp + 0x14c]
test edi, edi
jge 0x4602d9
mov eax, dword [esp + 0x154]
mov esi, edi
neg esi
mov dword [esp + 0x2c], esi
sub eax, esi
jmp 0x4602dd
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x154]
lea esi, [edi + esi - 1]
cmp esi, ecx
jle 0x4602f5
sub ecx, dword [esp + 0x2c]
sub ecx, edi
inc ecx
mov eax, ecx
xor esi, esi
cmp edx, esi
jle 0x460c64
cmp eax, esi
jle 0x460c64
lea ecx, [ebx + edx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xb8], ecx
add edx, eax
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xc8]
mov dword [esp + 0xbc], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
push esi
lea edx, [esp + 0xcc]
push 1
mov dword [esp + 0xd0], 0x7c
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x64]
test eax, eax
jl 0x460c94
mov eax, dword [esp + 0xec]
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
sar edx, 1
xor eax, eax
mov dword [esp + 0x6c], edx
test ecx, ecx
mov dword [esp + 0x54], esi
jle 0x4603a8
mov dword [esp + 0x50], ecx
mov edi, dword [esp + 0x158]
xor ecx, ecx
mov cx, word [edi + eax*2]
mov eax, dword [esp + 0x54]
lea eax, [eax + ecx + 1]
mov ecx, dword [esp + 0x50]
dec ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
jne 0x460380
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x60], ecx
cmp ecx, edi
jge 0x460c64
mov edi, dword [esp + 0x14c]
add ecx, edi
imul ecx, edx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x2c], ecx
add ecx, ebx
add ecx, edx
mov edx, dword [esp + 0xec]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x50], ecx
jmp 0x4603ea
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x54]
xor edi, edi
mov di, word [edx + eax*2]
add ecx, edi
inc eax
cmp eax, ecx
mov dword [esp + 0x54], ecx
jge 0x460c23
mov cx, word [edx + eax*2]
cmp cx, 0xc0
jne 0x460424
inc eax
xor ecx, ecx
mov cx, word [edx + eax*2]
inc eax
add esi, ecx
jmp 0x460c17
cmp cx, 0xc1
jne 0x4604e0
inc eax
xor ecx, ecx
mov edi, esi
mov cx, word [edx + eax*2]
inc eax
add esi, ecx
mov dword [esp + 0x28], ecx
cmp ebx, esi
mov dword [esp + 0x40], esi
jg 0x4609d4
mov ecx, dword [esp + 0xb8]
cmp ecx, edi
jl 0x4609d0
cmp edi, ebx
jge 0x460492
mov ecx, ebx
sub ecx, edi
mov edi, dword [esp + 0x50]
add eax, ecx
mov ecx, esi
sub ecx, ebx
shl ecx, 1
mov ebx, ecx
lea esi, [edx + eax*2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x40]
mov ecx, esi
sub ecx, ebx
add eax, ecx
jmp 0x460c17
cmp edi, ecx
jg 0x4604d8
cmp ecx, esi
jge 0x4604d8
sub ecx, edi
shl ecx, 1
mov ebx, dword [esp + 0x2c]
lea esi, [edx + eax*2]
add ebx, edi
mov edi, dword [esp + 0x148]
add ebx, edi
mov edi, dword [esp + 0x58]
lea edi, [edi + ebx*2]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
add eax, ecx
jmp 0x460c17
mov ecx, dword [esp + 0x28]
add ecx, ecx
jmp 0x46049e
cmp cx, 0xc2
je 0x4604f2
cmp cx, 0xc3
jne 0x460c85
and ecx, 0xffff
sub ecx, 0xc2
je 0x46050c
dec ecx
jne 0x460517
mov ecx, dword [esp + 0x168]
jmp 0x460513
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x68], ecx
inc eax
xor edi, edi
mov ecx, esi
mov di, word [edx + eax*2]
inc eax
add esi, edi
mov dword [esp + 0x28], edi
cmp ebx, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x40], esi
jg 0x460c15
mov edi, dword [esp + 0xb8]
cmp edi, ecx
jl 0x460c11
cmp ecx, ebx
jge 0x46079b
sub ebx, ecx
mov edi, esi
add eax, ebx
mov ebx, dword [esp + 0x3c]
sub edi, ebx
mov dword [esp + 0x64], eax
test edi, edi
jle 0x46078c
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x68]
add esi, ecx
mov ecx, dword [esp + 0x148]
and ebx, 0xffff
add esi, ecx
mov ecx, dword [esp + 0x58]
lea edx, [edx + eax*2]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x28], edx
lea ecx, [ecx + esi*2]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], ecx
jmp 0x46059f
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x74]
xor ecx, ecx
mov cl, byte [ebp + 0x69]
mov edx, ebx
and edx, eax
mov esi, ecx
shr edx, cl
xor ecx, ecx
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 0x70]
mov cl, byte [ebp + 0x68]
mov edi, ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], dl
mov edx, ebx
and edx, esi
mov dword [esp + 0x48], edi
mov edi, dword [ebp + 0x6c]
mov dword [esp + 0x7c], 0
shr edx, cl
xor ecx, ecx
and ebx, edi
mov cl, byte [ebp + 0x67]
shr ebx, cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x20], dl
mov edx, eax
mov byte [esp + 0x34], bl
mov bx, word [ecx]
mov ecx, dword [esp + 0x30]
and ebx, 0xffff
and eax, ebx
shr eax, cl
shr edx, cl
and eax, 0xff
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], edx
fild dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
and eax, 0xff
fidiv dword [esp + 0x78]
mov dword [esp + 0x14], eax
fimul dword [esp + 0x14]
call fcn.00468520
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1c], al
mov eax, esi
and esi, ebx
shr esi, cl
shr eax, cl
mov dword [esp + 0xc4], 0
mov ecx, dword [esp + 0x20]
and ecx, 0xff
and esi, 0xff
mov dword [esp + 0x14], esi
mov dword [esp + 0xc0], eax
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], eax
fidiv dword [esp + 0xc0]
fimul dword [esp + 0x14]
call fcn.00468520
mov esi, dword [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, edi
mov ecx, esi
and edi, ebx
mov dword [esp + 0x8c], 0
shr edi, cl
shr eax, cl
and edi, 0xff
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x14]
mov dword [esp + 0x88], eax
fidiv dword [esp + 0x88]
mov edx, dword [esp + 0x34]
and edx, 0xff
mov dword [esp + 0x14], edx
fimul dword [esp + 0x14]
call fcn.00468520
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and edx, 0xff
mov byte [esp + 0x34], al
cmp edx, ecx
mov bl, cl
ja 0x4606f9
mov bl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
and ecx, 0xff
cmp ecx, edx
ja 0x46070f
mov dl, byte [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
and ecx, 0xff
cmp ecx, edi
jbe 0x460725
mov al, byte [esp + 0x24]
movzx di, al
mov ecx, esi
xor ax, ax
movzx dx, dl
shl edi, cl
mov ecx, dword [esp + 0x48]
mov al, bl
shl edx, cl
mov ecx, dword [esp + 0x30]
shl eax, cl
or edi, edx
mov edx, dword [esp + 0x28]
add edx, 2
or edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edx
mov word [eax], di
add eax, 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x4c], eax
jne 0x46059b
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x158]
mov ecx, esi
sub ecx, ebx
add eax, ecx
jmp 0x460c17
mov ebx, dword [esp + 0x3c]
mov ecx, esi
sub ecx, ebx
add eax, ecx
jmp 0x460c17
cmp ecx, edi
jg 0x4609db
cmp edi, esi
jge 0x4609db
sub edi, ecx
test edi, edi
jle 0x4609d0
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x68]
add esi, ecx
mov ecx, dword [esp + 0x148]
and ebx, 0xffff
add esi, ecx
mov ecx, dword [esp + 0x58]
lea edx, [edx + eax*2]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], edx
lea ecx, [ecx + esi*2]
mov dword [esp + 0x14], edi
mov dword [esp + 0x4c], ecx
jmp 0x4607ee
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x74]
xor ecx, ecx
mov cl, byte [ebp + 0x69]
mov edx, ebx
and edx, eax
mov esi, ecx
shr edx, cl
xor ecx, ecx
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 0x70]
mov cl, byte [ebp + 0x68]
mov edi, ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], dl
mov edx, ebx
and edx, esi
mov dword [esp + 0x48], edi
mov edi, dword [ebp + 0x6c]
mov dword [esp + 0xac], 0
shr edx, cl
xor ecx, ecx
and ebx, edi
mov cl, byte [ebp + 0x67]
shr ebx, cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x20], dl
mov edx, eax
mov byte [esp + 0x34], bl
mov bx, word [ecx]
mov ecx, dword [esp + 0x30]
and ebx, 0xffff
and eax, ebx
shr eax, cl
shr edx, cl
and eax, 0xff
mov dword [esp + 0x44], eax
mov dword [esp + 0xa8], edx
fild dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
and eax, 0xff
fidiv dword [esp + 0xa8]
mov dword [esp + 0x44], eax
fimul dword [esp + 0x44]
call fcn.00468520
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1c], al
mov eax, esi
and esi, ebx
shr esi, cl
shr eax, cl
mov dword [esp + 0x9c], 0
mov ecx, dword [esp + 0x20]
and ecx, 0xff
and esi, 0xff
mov dword [esp + 0x10], esi
mov dword [esp + 0x98], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], eax
fidiv dword [esp + 0x98]
fimul dword [esp + 0x10]
call fcn.00468520
mov esi, dword [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, edi
mov ecx, esi
and edi, ebx
mov dword [esp + 0x74], 0
shr edi, cl
shr eax, cl
and edi, 0xff
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x10]
mov dword [esp + 0x70], eax
fidiv dword [esp + 0x70]
mov edx, dword [esp + 0x34]
and edx, 0xff
mov dword [esp + 0x10], edx
fimul dword [esp + 0x10]
call fcn.00468520
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and edx, 0xff
mov byte [esp + 0x34], al
cmp edx, ecx
mov bl, cl
ja 0x460948
mov bl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
and ecx, 0xff
cmp ecx, edx
ja 0x46095e
mov dl, byte [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
and ecx, 0xff
cmp ecx, edi
jbe 0x460974
mov al, byte [esp + 0x24]
movzx di, al
mov ecx, esi
xor ax, ax
movzx dx, dl
shl edi, cl
mov ecx, dword [esp + 0x48]
mov al, bl
shl edx, cl
mov ecx, dword [esp + 0x30]
shl eax, cl
or edi, edx
mov edx, dword [esp + 0x38]
add edx, 2
or edi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], edx
mov word [eax], di
add eax, 2
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x4607ea
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x28]
add eax, ecx
jmp 0x460c17
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x460c15
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x68]
add esi, ecx
mov ecx, dword [esp + 0x148]
and ebx, 0xffff
add esi, ecx
mov ecx, dword [esp + 0x58]
lea edx, [edx + eax*2]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], edx
lea ecx, [ecx + esi*2]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x14], ecx
jmp 0x460a20
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x74]
xor ecx, ecx
mov cl, byte [ebp + 0x69]
mov edx, ebx
and edx, eax
mov esi, ecx
shr edx, cl
xor ecx, ecx
mov dword [esp + 0x30], esi
mov esi, dword [ebp + 0x70]
mov cl, byte [ebp + 0x68]
mov edi, ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], dl
mov edx, ebx
and edx, esi
mov dword [esp + 0x48], edi
mov edi, dword [ebp + 0x6c]
mov dword [esp + 0x84], 0
shr edx, cl
xor ecx, ecx
and ebx, edi
mov cl, byte [ebp + 0x67]
shr ebx, cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x20], dl
mov edx, eax
mov byte [esp + 0x34], bl
mov bx, word [ecx]
mov ecx, dword [esp + 0x30]
and ebx, 0xffff
and eax, ebx
shr eax, cl
shr edx, cl
and eax, 0xff
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], edx
fild dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
and eax, 0xff
fidiv dword [esp + 0x80]
mov dword [esp + 0x10], eax
fimul dword [esp + 0x10]
call fcn.00468520
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1c], al
mov eax, esi
and esi, ebx
shr esi, cl
shr eax, cl
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0x20]
and ecx, 0xff
and esi, 0xff
mov dword [esp + 0x10], esi
mov dword [esp + 0x90], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], eax
fidiv dword [esp + 0x90]
fimul dword [esp + 0x10]
call fcn.00468520
mov esi, dword [esp + 0x24]
mov byte [esp + 0x20], al
mov eax, edi
mov ecx, esi
and edi, ebx
mov dword [esp + 0xa4], 0
shr edi, cl
shr eax, cl
and edi, 0xff
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x10]
mov dword [esp + 0xa0], eax
fidiv dword [esp + 0xa0]
mov edx, dword [esp + 0x34]
and edx, 0xff
mov dword [esp + 0x10], edx
fimul dword [esp + 0x10]
call fcn.00468520
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
and edx, 0xff
mov byte [esp + 0x34], al
cmp edx, ecx
mov bl, cl
ja 0x460b83
mov bl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x44]
and ecx, 0xff
cmp ecx, edx
ja 0x460b99
mov dl, byte [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
and ecx, 0xff
cmp ecx, edi
jbe 0x460baf
mov al, byte [esp + 0x24]
movzx di, al
mov ecx, esi
xor ax, ax
movzx dx, dl
shl edi, cl
mov ecx, dword [esp + 0x48]
mov al, bl
shl edx, cl
mov ecx, dword [esp + 0x30]
shl eax, cl
or edi, edx
mov edx, dword [esp + 0x38]
add edx, 2
or edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov word [eax], di
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x4c], eax
jne 0x460a1c
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x158]
jmp 0x460c15
mov edi, dword [esp + 0x28]
add eax, edi
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jl 0x46040a
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x54], ecx
mov eax, ecx
mov ecx, dword [esp + 0x6c]
inc edx
add edi, ecx
add ecx, ecx
add esi, ecx
mov ecx, dword [esp + 0xbc]
cmp edx, ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x50], esi
jl 0x4603e6
mov ebp, dword [ebp + 0x1c]
push 0
push ebp
mov edx, dword [ebp]
call dword [edx + 0x80]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret 0x24
mov ebp, dword [ebp + 0x1c]
push 0
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x80]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x134
ret 0x24