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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x7c
mov ecx, dword [eax + 0xe4]
mov edx, dword [0x6480b4]
xor edx, esp
mov dword [esp + 0x78], edx
xor edx, edx
mov edi, dword [eax + 0xe0]
mov dword [esp + 0x74], ecx
mov word [esp + 0x20], dx
mov word [esp + 0x22], dx
mov word [esp + 0x24], dx
mov word [esp + 0x26], dx
mov word [esp + 0x28], dx
mov word [esp + 0x2a], dx
mov word [esp + 0x2c], dx
mov word [esp + 0x2e], dx
mov word [esp + 0x30], dx
mov word [esp + 0x32], dx
mov word [esp + 0x34], dx
mov word [esp + 0x36], dx
mov word [esp + 0x38], dx
mov word [esp + 0x3a], dx
mov word [esp + 0x3c], dx
mov word [esp + 0x3e], dx
movzx ecx, word [edi + edx*2]
inc edx
inc word [esp + ecx*2 + 0x20]
cmp edx, 0x13
jb 0x46c0d5
mov ebx, dword [eax + 0xc4]
mov esi, 0xf
movzx edx, word [esp + esi*2 + 0x20]
test edx, edx
jne 0x46c584
dec esi
cmp esi, 1
jae 0x46c0ef
cmp esi, ebx
jae 0x46c108
mov ebx, esi
test esi, esi
jne 0x46c124
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058bb64
mov eax, 0xffffffff
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret
mov edx, 1
movzx ebp, word [esp + edx*2 + 0x20]
test ebp, ebp
jne 0x46c138
inc edx
cmp edx, 0xf
jbe 0x46c129
mov ebp, 1
cmp edx, ebx
mov ecx, ebp
jbe 0x46c145
mov ebx, edx
mov dword [esp + 0x70], ebx
add ebp, ebp
movzx ebx, word [esp + ecx*2 + 0x20]
sub ebp, ebx
js 0x46c10c
inc ecx
cmp ecx, 0xf
jbe 0x46c149
mov ebx, dword [esp + 0x70]
test ebp, ebp
jle 0x46c17a
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058bb64
mov eax, 0xffffffff
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret
movzx ecx, word [esp + 0x22]
xor ebp, ebp
mov dword [esp + 0x70], ebx
movzx ebx, word [esp + 0x24]
mov word [esp + 4], cx
add ecx, ebx
movzx ebx, word [esp + 0x26]
mov word [esp + 6], cx
add ecx, ebx
movzx ebx, word [esp + 0x28]
mov word [esp + 8], cx
add ecx, ebx
movzx ebx, word [esp + 0x2a]
mov word [esp + 0xa], cx
add ecx, ebx
movzx ebx, word [esp + 0x2c]
mov word [esp + 0xc], cx
add ecx, ebx
movzx ebx, word [esp + 0x2e]
mov word [esp + 0xe], cx
add ecx, ebx
movzx ebx, word [esp + 0x30]
mov word [esp + 0x10], cx
add ecx, ebx
movzx ebx, word [esp + 0x32]
mov word [esp + 0x12], cx
add ecx, ebx
movzx ebx, word [esp + 0x34]
mov word [esp + 0x14], cx
add ecx, ebx
movzx ebx, word [esp + 0x36]
mov word [esp + 0x16], cx
add ecx, ebx
movzx ebx, word [esp + 0x38]
mov word [esp + 0x18], cx
add ecx, ebx
movzx ebx, word [esp + 0x3a]
mov word [esp + 0x1a], cx
add ecx, ebx
movzx ebx, word [esp + 0x3c]
mov word [esp + 0x1c], cx
add ecx, ebx
mov word [esp + 0x1e], cx
mov word [esp + 2], bp
mov ecx, dword [esp + 0x74]
movzx ebx, word [edi + ebp*2]
test ebx, ebx
je 0x46c247
movzx ebx, word [esp + ebx*2]
mov word [ecx + ebx*2], bp
movzx ebx, word [edi + ebp*2]
inc word [esp + ebx*2]
inc ebp
cmp ebp, 0x13
jb 0x46c22f
mov ebp, dword [eax + 0xdc]
mov ebx, dword [esp + 0x70]
mov ecx, ebx
mov dword [esp + 0x4c], ebp
mov ebp, 1
shl ebp, cl
mov dword [esp], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x40], esi
lea ebp, [ebp - 1]
mov dword [esp + 0x1c], ebp
xor ebp, ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], ebp
mov ebp, 1
shl ebp, cl
lea ecx, [edx + 0x1f]
mov dword [esp + 0x54], ebp
mov ebp, 1
shl ebp, cl
lea ecx, [esp + edx*2 + 0x20]
mov dword [esp + 0x58], ebp
movzx ebp, word [ecx]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x74]
mov ecx, edx
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x68], ecx
movzx esi, word [esi + ebx*2]
cmp esi, 0x13
mov byte [esp + 0x45], cl
jge 0x46c2e3
mov byte [esp + 0x44], 0
mov word [esp + 0x46], si
jmp 0x46c304
jle 0x46c2f8
mov ecx, dword [esp + 0x74]
movzx ecx, word [ecx + esi*2]
mov byte [esp + 0x44], cl
mov word [esp + 0x46], cx
jmp 0x46c304
xor ecx, ecx
mov byte [esp + 0x44], 0x60
mov word [esp + 0x46], cx
mov edi, dword [esp + 0x54]
mov esi, 1
mov dword [esp + 0x6c], edi
mov edi, eax
mov ecx, dword [esp + 0x68]
shl esi, cl
mov ecx, dword [esp + 0x48]
shr edi, cl
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x60], edx
lea edi, [ecx + edi*4]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
sub eax, esi
mov dword [edi + eax*4], ecx
jne 0x46c33a
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
test ecx, eax
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x60]
je 0x46c35b
shr ecx, 1
test ecx, eax
jne 0x46c355
dec ebp
lea esi, [ecx - 1]
and eax, esi
inc ebx
add eax, ecx
test ecx, ecx
mov ecx, dword [esp + 0x64]
jne 0x46c371
mov eax, 0
movzx edi, bp
mov word [ecx], bp
test edi, edi
jne 0x46c3af
cmp edx, dword [esp + 0x40]
je 0x46c4b6
mov edx, dword [esp + 0x74]
mov edi, 1
mov ebp, dword [esp + 0x14]
movzx esi, word [edx + ebx*2]
movzx edx, word [ebp + esi*2]
lea ecx, [edx + 0x1f]
shl edi, cl
lea ecx, [esp + edx*2 + 0x20]
mov dword [esp + 0x58], edi
mov dword [esp + 0x64], ecx
movzx ebp, word [ecx]
cmp edx, dword [esp + 0x70]
jbe 0x46c2bc
mov esi, eax
and esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x18]
je 0x46c2bc
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x48]
test esi, esi
lea edi, [edi + ecx*4]
mov ecx, edx
jne 0x46c3e6
mov esi, dword [esp + 0x70]
mov dword [esp + 0x48], esi
sub ecx, esi
mov esi, 1
shl esi, cl
mov dword [esp + 0x54], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 8], ecx
mov esi, dword [esp + 0xc]
cmp edx, dword [esp + 0x40]
jae 0x46c46f
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], eax
lea ecx, [esp + ecx*2 + 0x20]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
movzx edi, word [ecx + eax*2]
sub ebx, edi
test ebx, ebx
jle 0x46c446
inc eax
add ebx, ebx
lea edi, [ebp + eax]
cmp edx, edi
ja 0x46c431
mov dword [esp + 8], eax
mov edi, 1
mov ecx, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], edx
shl edi, cl
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x54], edi
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x54]
add dword [esp], edi
mov edi, dword [ebp + 0xdc]
mov dword [esp + 0x18], esi
mov byte [edi + esi*4], cl
mov edi, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x70]
mov byte [edi + esi*4 + 1], cl
mov ebp, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x4c]
sub ecx, ebp
shr ecx, 2
mov word [ebp + esi*4 + 2], cx
mov ebp, dword [esp + 4]
jmp 0x46c2bc
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x5c], 0
je 0x46c557
xor edx, edx
mov word [esp + 0x46], dx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x44], 0x40
mov byte [esp + 0x45], cl
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
test ebp, ebp
je 0x46c529
mov eax, esi
and eax, dword [esp + 0x1c]
cmp edx, eax
je 0x46c529
mov eax, dword [esp + 0x70]
mov edi, 1
mov ebx, dword [esp + 0x10]
xor ebp, ebp
mov byte [esp + 0x45], al
lea ecx, [eax + 0x1f]
mov ebx, dword [ebx + 0xdc]
shl edi, cl
mov ecx, ebp
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x44]
test edi, esi
mov dword [ebx + eax*4], ecx
mov eax, edi
je 0x46c542
shr eax, 1
test eax, esi
jne 0x46c53c
test eax, eax
je 0x46c54f
lea ecx, [eax - 1]
and esi, ecx
add esi, eax
jne 0x46c4fd
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xdc]
mov ebp, dword [esp]
mov dword [eax + 0xc4], ebx
lea esi, [edx + ebp*4]
mov dword [eax + 0xdc], esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0058bb64
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret
cmp esi, ebx
jae 0x46c124
mov ebx, esi
jmp 0x46c124