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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x88
mov edx, dword [0x6480b4]
xor edx, esp
mov dword [esp + 0x84], edx
mov ecx, dword [eax + 0xe0]
mov edx, dword [eax + 0xe4]
mov esi, dword [eax + 0xd0]
test esi, esi
mov dword [esp + 0x80], ecx
mov ecx, 0
mov dword [esp + 0x7c], edx
mov word [esp + 0x20], cx
mov word [esp + 0x22], cx
mov word [esp + 0x24], cx
mov word [esp + 0x26], cx
mov word [esp + 0x28], cx
mov word [esp + 0x2a], cx
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], cx
mov word [esp + 0x30], cx
mov word [esp + 0x32], cx
mov word [esp + 0x34], cx
mov word [esp + 0x36], cx
mov word [esp + 0x38], cx
mov word [esp + 0x3a], cx
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], cx
jbe 0x46c646
mov ebx, dword [esp + 0x80]
xor edx, edx
movzx ecx, word [ebx + edx*2]
inc edx
inc word [esp + ecx*2 + 0x20]
cmp edx, esi
jb 0x46c638
mov ecx, dword [eax + 0xc4]
mov ebx, 0xf
movzx edx, word [esp + ebx*2 + 0x20]
test edx, edx
jne 0x46cb4f
dec ebx
cmp ebx, 1
jae 0x46c651
cmp ebx, ecx
jae 0x46c66a
mov ecx, ebx
test ebx, ebx
jne 0x46c68c
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 edx, 1
movzx ebp, word [esp + edx*2 + 0x20]
test ebp, ebp
jne 0x46c6a0
inc edx
cmp edx, 0xf
jbe 0x46c691
mov ebp, 1
cmp edx, ecx
jbe 0x46c6ab
mov ecx, edx
mov dword [esp + 0x78], ecx
mov edi, ebp
add ebp, ebp
movzx ecx, word [esp + edi*2 + 0x20]
sub ebp, ecx
js 0x46c66e
inc edi
cmp edi, 0xf
jbe 0x46c6b1
mov ecx, dword [esp + 0x78]
test ebp, ebp
jle 0x46c6d8
movzx ebp, word [esp + 0x20]
neg ebp
add ebp, esi
cmp ebp, 1
jne 0x46c66e
movzx ebp, word [esp + 0x22]
movzx edi, word [esp + 0x24]
add edi, ebp
mov dword [esp + 0x40], ebp
movzx ebp, word [esp + 0x26]
add ebp, edi
mov dword [esp + 0x6c], edi
movzx edi, word [esp + 0x28]
add edi, ebp
mov dword [esp + 0x5c], ebp
movzx ebp, word [esp + 0x2a]
add ebp, edi
mov dword [esp + 0x60], edi
movzx edi, word [esp + 0x2c]
add edi, ebp
mov dword [esp + 0x70], ebp
movzx ebp, word [esp + 0x2e]
add ebp, edi
mov dword [esp + 0x64], edi
movzx edi, word [esp + 0x30]
add edi, ebp
mov dword [esp + 0x68], ebp
movzx ebp, word [esp + 0x32]
add ebp, edi
mov dword [esp + 0x58], edi
movzx edi, word [esp + 0x34]
add edi, ebp
mov dword [esp + 0x54], ebp
movzx ebp, word [esp + 0x36]
add ebp, edi
mov dword [esp + 0x50], edi
movzx edi, word [esp + 0x38]
add edi, ebp
mov dword [esp + 0x4c], ebp
movzx ebp, word [esp + 0x3a]
add ebp, edi
mov dword [esp + 0x48], edi
movzx edi, word [esp + 0x3c]
add edi, ebp
mov dword [esp + 0x44], ebp
test esi, esi
jbe 0x46c82f
mov ebp, edi
mov edi, dword [esp + 0x44]
mov word [esp + 0x1e], bp
mov word [esp + 0x1c], di
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov word [esp + 0x1a], bp
mov word [esp + 0x18], di
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov word [esp + 0x16], bp
mov word [esp + 0x14], di
mov ebp, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
mov word [esp + 0x12], bp
mov word [esp + 0x10], di
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x70]
mov word [esp + 0xe], bp
mov word [esp + 0xc], di
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov word [esp + 0xa], bp
mov word [esp + 8], di
mov ebp, dword [esp + 0x6c]
mov edi, dword [esp + 0x40]
mov word [esp + 6], bp
xor ebp, ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov word [esp + 4], di
mov word [esp + 2], bp
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movzx edi, word [ecx + ebp*2]
test edi, edi
je 0x46c822
movzx edi, word [esp + edi*2]
mov word [eax + edi*2], bp
movzx edi, word [ecx + ebp*2]
inc word [esp + edi*2]
inc ebp
cmp ebp, esi
jb 0x46c80a
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ebp, dword [eax + 0xdc]
mov dword [esp + 0x44], ebp
mov ebp, 1
shl ebp, cl
cmp ebp, 0x506
lea esi, [ebp - 1]
mov dword [esp + 0xc], esi
jb 0x46c86d
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0058bb64
mov eax, 1
add esp, 0x88
pop ebp
pop ebx
pop edi
pop esi
ret
xor esi, esi
mov edi, 1
mov dword [esp + 0x40], esi
mov dword [esp], esi
shl edi, cl
mov dword [esp + 4], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x18], esi
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x7c]
mov ecx, edx
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
movzx ebx, word [ebx + eax*2]
cmp ebx, 0x100
mov byte [esp + 0x15], cl
jge 0x46c8ce
mov byte [esp + 0x14], 0
mov word [esp + 0x16], bx
jmp 0x46c8f7
jle 0x46c8eb
movzx ecx, word [ebx*2 + 0x61fe5e]
movzx ebx, word [ebx*2 + 0x61fe9c]
mov byte [esp + 0x14], cl
mov word [esp + 0x16], bx
jmp 0x46c8f7
xor ecx, ecx
mov byte [esp + 0x14], 0x60
mov word [esp + 0x16], cx
mov esi, 1
mov ebx, ebp
mov ecx, dword [esp + 0x4c]
shl esi, cl
mov ecx, dword [esp + 0x18]
shr ebx, cl
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], edx
lea ebx, [ecx + ebx*4]
mov ecx, dword [esp + 0x14]
sub edi, esi
mov dword [ebx + edi*4], ecx
jne 0x46c921
mov edx, dword [esp + 0x48]
lea ecx, [edx + 0x1f]
mov ebx, 1
shl ebx, cl
mov ebp, dword [esp + 0x40]
mov ecx, ebx
test ebx, ebp
je 0x46c946
shr ecx, 1
test ecx, ebp
jne 0x46c940
inc eax
lea esi, [ecx - 1]
and ebp, esi
add ebp, ecx
test ecx, ecx
movzx ecx, word [esp + edx*2 + 0x20]
jne 0x46c95c
mov ebp, 0
dec ecx
movzx edi, cx
mov word [esp + edx*2 + 0x20], cx
test edi, edi
jne 0x46c986
cmp edx, dword [esp + 0x10]
je 0x46ca76
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movzx ebx, word [edx + eax*2]
movzx edx, word [ecx + ebx*2]
cmp edx, dword [esp + 0x78]
jbe 0x46c8a4
mov ebx, ebp
and ebx, dword [esp + 0xc]
cmp ebx, dword [esp + 8]
je 0x46c8a4
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x46c9b4
mov esi, dword [esp + 0x78]
mov dword [esp + 0x18], esi
lea edi, [edi + ecx*4]
mov ecx, edx
sub ecx, esi
mov esi, 1
shl esi, cl
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], esi
cmp edx, dword [esp + 0x10]
jae 0x46ca26
mov esi, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], edx
lea esi, [esp + esi*2 + 0x20]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
movzx edi, word [esi + ecx*2]
sub edx, edi
test edx, edx
jle 0x46ca08
inc ecx
add edx, edx
lea edi, [ebp + ecx]
cmp eax, edi
ja 0x46c9f3
mov esi, 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
shl esi, cl
mov eax, dword [esp]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 4]
add esi, dword [esp + 0x1c]
mov dword [esp + 4], esi
cmp esi, 0x506
jae 0x46c84f
mov esi, dword [esp + 0x74]
mov dword [esp + 8], ebx
mov edi, dword [esi + 0xdc]
mov byte [edi + ebx*4], cl
mov edi, dword [esi + 0xdc]
mov ecx, dword [esp + 0x78]
mov byte [edi + ebx*4 + 1], cl
mov esi, dword [esi + 0xdc]
mov ecx, dword [esp + 0x44]
sub ecx, esi
shr ecx, 2
mov word [esi + ebx*4 + 2], cx
jmp 0x46c8a4
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x4c]
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x40], 0
je 0x46cb1f
xor esi, esi
mov word [esp + 0x16], si
mov byte [esp + 0x15], dl
mov dword [esp + 4], ebp
mov byte [esp + 0x14], 0x40
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test esi, esi
je 0x46caed
mov eax, ebp
and eax, dword [esp + 0xc]
cmp edi, eax
je 0x46caed
mov eax, dword [esp + 0x78]
mov ebx, 1
mov edx, dword [esp + 0x74]
xor esi, esi
mov byte [esp + 0x15], al
lea ecx, [eax + 0x1f]
mov edx, dword [edx + 0xdc]
shl ebx, cl
mov ecx, esi
mov eax, ebp
shr eax, cl
mov ecx, dword [esp + 0x14]
test ebx, ebp
mov dword [edx + eax*4], ecx
mov eax, ebx
je 0x46cb06
shr eax, 1
test eax, ebp
jne 0x46cb00
test eax, eax
je 0x46cb13
lea ecx, [eax - 1]
and ebp, ecx
add ebp, eax
jne 0x46cac1
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0xdc]
mov dword [eax + 0xc4], ecx
lea ebx, [edx + ebp*4]
mov dword [eax + 0xdc], ebx
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 ebx, ecx
jae 0x46c68c
mov ecx, ebx
jmp 0x46c68c