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

Disassembly:
sub esp, 0x58
push esi
mov esi, dword [esp + 0x60]
push edi
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x18]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov edi, dword [ecx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], edi
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x70]
test ecx, ecx
jle 0x460b51
mov esi, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x6c]
mov edi, esi
sub ebx, esi
push ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
jmp 0x460836
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + edi]
mov esi, dword [edi]
mov ebx, dword [edx + 0x24]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], esi
je 0x460881
add ecx, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x70], 0xfffffffd
mov dword [edx + 0x24], edi
lea ecx, [ecx + eax*2 - 3]
mov dword [esp + 0x78], ecx
lea ecx, [esi + eax - 1]
mov esi, dword [edx + 0x20]
mov dword [esp + 0x74], ecx
lea ecx, [eax + eax*2 + 3]
lea ebx, [esi + ecx*2]
mov ecx, dword [esp + 0x78]
jmp 0x460898
mov ebx, dword [edx + 0x20]
mov esi, 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x70], 3
mov dword [edx + 0x24], esi
xor ebp, ebp
xor esi, esi
xor edx, edx
test eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
jbe 0x460b17
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
jmp 0x4608d0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
movsx edx, word [ebx + eax*2]
lea esi, [edx + esi + 8]
test esi, esi
jge 0x4608e7
sar esi, 4
or esi, 0xf0000000
jmp 0x4608ea
sar esi, 4
movsx edx, word [ebx + eax*2 + 2]
lea edi, [edx + edi + 8]
test edi, edi
jge 0x460902
sar edi, 4
or edi, 0xf0000000
jmp 0x460905
sar edi, 4
movsx eax, word [ebx + eax*2 + 4]
lea ebp, [eax + ebp + 8]
test ebp, ebp
jge 0x46091d
sar ebp, 4
or ebp, 0xf0000000
jmp 0x460920
sar ebp, 4
mov edx, dword [esp + 0x10]
mov eax, 0x51eb851f
mov edx, dword [edx + esi*4]
mov esi, dword [esp + 0x18]
imul edx, dword [esp + 0x14]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx]
add esi, edx
xor edx, edx
mov dl, byte [eax + esi]
mov eax, dword [esp + 0x10]
mov esi, edx
mov edx, dword [eax + edi*4]
mov eax, 0x51eb851f
imul edx, dword [esp + 0x14]
imul edx
mov edi, dword [esp + 0x18]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx + 1]
add edi, edx
xor edx, edx
mov dl, byte [eax + edi]
mov eax, dword [esp + 0x10]
mov edi, edx
mov edx, dword [eax + ebp*4]
mov eax, 0x51eb851f
imul edx, dword [esp + 0x14]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
mov al, byte [ecx + 2]
mov ecx, dword [esp + 0x18]
add ecx, edx
xor edx, edx
mov dl, byte [eax + ecx]
mov eax, dword [0x552c24]
mov ecx, 8
mov ebp, edx
mov edx, dword [0x552c28]
sub ecx, eax
mov eax, esi
sar eax, cl
mov ecx, 8
sub ecx, edx
mov edx, edi
sar edx, cl
mov ecx, 8
mov dword [esp + 0x28], edx
mov edx, dword [0x552c2c]
sub ecx, edx
mov edx, ebp
sar edx, cl
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x28]
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x54]
cmp word [ecx + edx*2], 0
lea ecx, [ecx + edx*2]
mov dword [esp + 0x54], ecx
jne 0x460a1e
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.00461d60
mov ecx, dword [esp + 0x64]
add esp, 0x10
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [esp + 0x6c]
dec eax
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x460a4f
mov edx, dword [esp + 0x78]
cmp byte [edx], 0x81
jne 0x460a4f
cmp byte [edx + 1], 0x80
jne 0x460a4f
cmp byte [edx + 2], 0x80
jne 0x460a4f
mov edx, dword [esp + 0x74]
mov cl, byte [ecx + 0x10]
mov byte [edx], cl
jmp 0x460a55
mov ecx, dword [esp + 0x74]
mov byte [ecx], al
mov ecx, dword [esp + 0x58]
xor edx, edx
mov dl, byte [eax + ecx]
mov ecx, dword [esp + 0x5c]
sub esi, edx
xor edx, edx
mov dl, byte [eax + ecx]
mov ecx, dword [esp + 0x60]
sub edi, edx
xor edx, edx
mov dl, byte [eax + ecx]
lea eax, [esi + esi]
sub ebp, edx
mov edx, dword [esp + 0x1c]
mov ecx, esi
add esi, eax
add edx, esi
add esi, eax
mov word [ebx], dx
mov edx, dword [esp + 0x2c]
add edx, esi
add esi, eax
mov dword [esp + 0x2c], ecx
lea eax, [edi + edi]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov ecx, edi
add edi, eax
add edx, edi
add edi, eax
mov word [ebx + 2], dx
mov edx, dword [esp + 0x30]
add edx, edi
add edi, eax
mov dword [esp + 0x30], ecx
lea eax, [ebp + ebp]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
mov ecx, ebp
add ebp, eax
add edx, ebp
add ebp, eax
mov word [ebx + 4], dx
mov edx, dword [esp + 0x34]
add edx, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x78]
add ebp, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x74]
add ecx, eax
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x3c]
add edx, ecx
dec eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x3c], eax
jne 0x4608c8
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
jmp 0x460b1b
mov edx, dword [esp + 0x40]
mov cx, word [esp + 0x1c]
mov edi, dword [esp + 0x44]
mov word [ebx], cx
mov cx, word [esp + 0x20]
mov word [ebx + 2], cx
mov cx, word [esp + 0x24]
mov word [ebx + 4], cx
mov ecx, dword [esp + 0x48]
add edi, 4
dec ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
jne 0x460832
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x58
ret