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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x88
xor ebx, ebx
mov edi, dword [eax + 0xd0]
mov ecx, dword [eax + 0xe0]
mov edx, dword [0x6480b4]
xor edx, esp
mov dword [esp + 0x84], edx
lea edx, [ecx + edi*2]
mov ecx, dword [eax + 0xe4]
mov edi, dword [eax + 0xd4]
test edi, edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], ecx
mov word [esp + 0x20], bx
mov word [esp + 0x22], bx
mov word [esp + 0x24], bx
mov word [esp + 0x26], bx
mov word [esp + 0x28], bx
mov word [esp + 0x2a], bx
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], bx
mov word [esp + 0x30], bx
mov word [esp + 0x32], bx
mov word [esp + 0x34], bx
mov word [esp + 0x36], bx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
mov word [esp + 0x3c], bx
mov word [esp + 0x3e], bx
jbe 0x46cc07
mov ebx, edx
xor edx, edx
movzx ecx, word [ebx + edx*2]
inc edx
inc word [esp + ecx*2 + 0x20]
cmp edx, edi
jb 0x46cbf9
mov edx, dword [eax + 0xc8]
mov ebp, 0xf
movzx ebx, word [esp + ebp*2 + 0x20]
test ebx, ebx
jne 0x46d134
dec ebp
cmp ebp, 1
jae 0x46cc12
cmp ebp, edx
jae 0x46cc2b
mov edx, ebp
test ebp, ebp
jne 0x46cc4d
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0058bb64
mov eax, 0xffffffff
add esp, 0x88
pop ebp
pop ebx
pop edi
pop esi
ret
mov ebx, 1
movzx esi, word [esp + ebx*2 + 0x20]
test esi, esi
jne 0x46cc61
inc ebx
cmp ebx, 0xf
jbe 0x46cc52
mov esi, 1
cmp ebx, edx
mov dword [esp], esi
jbe 0x46cc6f
mov edx, ebx
mov dword [esp + 0x78], edx
mov ecx, esi
mov esi, dword [esp]
add esi, esi
movzx edx, word [esp + ecx*2 + 0x20]
sub esi, edx
js 0x46cc2f
inc ecx
cmp ecx, 0xf
jbe 0x46cc78
mov dword [esp], esi
mov edx, dword [esp + 0x78]
cmp dword [esp], 0
jle 0x46ccb4
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0058bb64
mov eax, 0xffffffff
add esp, 0x88
pop ebp
pop ebx
pop edi
pop esi
ret
movzx esi, word [esp + 0x22]
movzx ecx, word [esp + 0x24]
add ecx, esi
mov dword [esp + 0x40], esi
movzx esi, word [esp + 0x26]
add esi, ecx
mov dword [esp + 0x68], ecx
movzx ecx, word [esp + 0x28]
add ecx, esi
mov dword [esp + 0x70], esi
movzx esi, word [esp + 0x2a]
add esi, ecx
mov dword [esp + 0x5c], ecx
movzx ecx, word [esp + 0x2c]
add ecx, esi
mov dword [esp + 0x60], esi
movzx esi, word [esp + 0x2e]
add esi, ecx
mov dword [esp + 0x6c], ecx
movzx ecx, word [esp + 0x30]
add ecx, esi
mov dword [esp + 0x64], esi
movzx esi, word [esp + 0x32]
add esi, ecx
mov dword [esp + 0x58], ecx
movzx ecx, word [esp + 0x34]
add ecx, esi
mov dword [esp + 0x54], esi
movzx esi, word [esp + 0x36]
add esi, ecx
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x38]
add ecx, esi
mov dword [esp + 0x4c], esi
movzx esi, word [esp + 0x3a]
add esi, ecx
mov dword [esp + 0x48], ecx
movzx ecx, word [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x44], esi
test edi, edi
jbe 0x46ce0d
mov esi, ecx
mov word [esp + 0x1e], si
mov esi, dword [esp + 0x44]
mov word [esp + 0x1c], si
mov esi, dword [esp + 0x48]
mov word [esp + 0x1a], si
mov esi, dword [esp + 0x4c]
mov word [esp + 0x18], si
mov esi, dword [esp + 0x50]
mov word [esp + 0x16], si
mov esi, dword [esp + 0x54]
mov word [esp + 0x14], si
mov esi, dword [esp + 0x58]
mov word [esp + 0x12], si
mov esi, dword [esp + 0x64]
mov word [esp + 0x10], si
mov esi, dword [esp + 0x6c]
mov word [esp + 0xe], si
mov esi, dword [esp + 0x60]
mov word [esp + 0xc], si
mov esi, dword [esp + 0x5c]
mov word [esp + 0xa], si
mov esi, dword [esp + 0x70]
mov word [esp + 8], si
mov esi, dword [esp + 0x68]
mov word [esp + 6], si
mov esi, dword [esp + 0x40]
mov word [esp + 4], si
xor esi, esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
mov word [esp + 2], si
mov ecx, esi
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
movzx esi, word [edx + ecx*2]
test esi, esi
je 0x46ce00
movzx esi, word [esp + esi*2]
mov word [eax + esi*2], cx
movzx esi, word [edx + ecx*2]
inc word [esp + esi*2]
inc ecx
cmp ecx, edi
jb 0x46cde8
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, edx
mov edi, 1
shl edi, cl
mov esi, dword [eax + 0xdc]
mov dword [esp + 0x44], esi
mov dword [esp + 4], edi
mov dword [esp + 0x78], edx
lea esi, [edi - 1]
mov dword [esp + 0x10], esi
mov esi, 1
xor edi, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], edi
mov edi, 1
shl esi, cl
lea ecx, [ebx + 0x1f]
shl edi, cl
mov dword [esp + 0x48], edi
lea edi, [esp + ebx*2 + 0x20]
mov dword [esp + 0x4c], esi
movzx esi, word [edi]
mov dword [esp], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x5c], edi
mov ebp, esi
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x7c]
mov ecx, ebx
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x60], ecx
mov byte [esp + 0x1d], cl
movzx esi, word [esi + edx*2]
movzx ecx, word [esi*2 + 0x61ffe0]
movzx esi, word [esi*2 + 0x620020]
mov byte [esp + 0x1c], cl
mov word [esp + 0x1e], si
mov edi, dword [esp + 0x4c]
mov esi, 1
mov dword [esp + 0x64], edi
mov edi, eax
mov ecx, dword [esp + 0x60]
shl esi, cl
mov ecx, dword [esp + 0x40]
shr edi, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ebx
lea edi, [ecx + edi*4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
sub eax, esi
mov dword [edi + eax*4], ecx
jne 0x46cee3
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
test ecx, eax
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
je 0x46cf04
shr ecx, 1
test ecx, eax
jne 0x46cefe
dec ebp
lea esi, [ecx - 1]
and eax, esi
inc edx
add eax, ecx
test ecx, ecx
mov ecx, dword [esp + 0x5c]
jne 0x46cf1a
mov eax, 0
movzx edi, bp
mov word [ecx], bp
test edi, edi
jne 0x46cf5b
cmp ebx, dword [esp + 0x18]
je 0x46d05f
mov ebx, dword [esp + 0x7c]
mov edi, 1
mov ebp, dword [esp + 0x80]
movzx esi, word [ebx + edx*2]
movzx ebx, word [ebp + esi*2]
lea ecx, [ebx + 0x1f]
shl edi, cl
lea ecx, [esp + ebx*2 + 0x20]
mov dword [esp + 0x48], edi
mov dword [esp + 0x5c], ecx
movzx ebp, word [ecx]
cmp ebx, dword [esp + 0x78]
jbe 0x46ce7e
mov esi, eax
and esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x14]
je 0x46ce7e
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x40]
test esi, esi
lea edi, [edi + ecx*4]
mov ecx, ebx
jne 0x46cf92
mov esi, dword [esp + 0x78]
mov dword [esp + 0x40], esi
sub ecx, esi
mov esi, 1
shl esi, cl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 8], ecx
mov esi, dword [esp + 0xc]
cmp ebx, dword [esp + 0x18]
jae 0x46d019
mov ecx, dword [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
lea ecx, [esp + ecx*2 + 0x20]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 8]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
movzx edi, word [ecx + eax*2]
sub ebx, edi
test ebx, ebx
jle 0x46cff1
inc eax
add ebx, ebx
lea edi, [ebp + eax]
cmp edx, edi
ja 0x46cfdc
mov dword [esp + 8], eax
mov edi, 1
mov ecx, eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x18], edx
shl edi, cl
mov ebp, dword [esp]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x4c], edi
mov dword [esp], ebp
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x4c]
add dword [esp + 4], edi
mov edi, dword [ebp + 0xdc]
mov dword [esp + 0x14], esi
mov byte [edi + esi*4], cl
mov edi, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x78]
mov byte [edi + esi*4 + 1], cl
mov ebp, dword [ebp + 0xdc]
mov ecx, dword [esp + 0x44]
sub ecx, ebp
shr ecx, 2
mov word [ebp + esi*4 + 2], cx
mov ebp, dword [esp]
jmp 0x46ce7e
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x54], 0
je 0x46d100
xor ebx, ebx
mov word [esp + 0x1e], bx
mov dword [esp + 0x78], edx
mov byte [esp + 0x1c], 0x40
mov byte [esp + 0x1d], cl
mov dword [esp + 0x74], eax
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x44]
test ebp, ebp
je 0x46d0d2
mov eax, esi
and eax, dword [esp + 0x10]
cmp edx, eax
je 0x46d0d2
mov eax, dword [esp + 0x78]
mov edi, 1
mov ebx, dword [esp + 0x74]
xor ebp, ebp
mov byte [esp + 0x1d], 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 + 0x1c]
test edi, esi
mov dword [ebx + eax*4], ecx
mov eax, edi
je 0x46d0eb
shr eax, 1
test eax, esi
jne 0x46d0e5
test eax, eax
je 0x46d0f8
lea ecx, [eax - 1]
and esi, ecx
add esi, eax
jne 0x46d0a6
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ebx, dword [eax + 0xdc]
mov ebp, dword [esp + 4]
mov dword [eax + 0xc8], edx
lea esi, [ebx + ebp*4]
mov dword [eax + 0xdc], esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0058bb64
xor eax, eax
add esp, 0x88
pop ebp
pop ebx
pop edi
pop esi
ret
cmp ebp, edx
jae 0x46cc4d
mov edx, ebp
jmp 0x46cc4d