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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp + 0x2c], eax
mov dword [esp], ebx
call fcn.0046d220
mov dword [esp + 0x3c], eax
test eax, eax
je 0x46f8a5
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0046d810
and eax, 0xffff
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x46f89d
xor edi, edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046db90
mov ecx, dword [esp + 0x3c]
mov ebp, eax
test ecx, ecx
jne 0x46f930
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046d810
mov ecx, dword [esp + 0x3c]
and eax, 0xffff
test ecx, ecx
mov dword [esp + 0x28], eax
jne 0x46f930
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046d810
mov ecx, dword [esp + 0x3c]
and eax, 0xffff
test ecx, ecx
jne 0x46f930
cmp ebp, dword [esp + 0x70]
je 0x46f940
inc edi
cmp dword [esp + 0x24], edi
jge 0x46f8c8
mov eax, 1
jmp 0x46f89d
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x68]
add edx, eax
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0046d220
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x46f89d
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 8
mov dword [esp], ecx
call fcn.0046f2b0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x46f89d
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
test eax, eax
jle 0x46fa5f
mov edi, dword [esp + 0x24]
xor ebp, ebp
jmp 0x46fa25
mov dword [esp + 4], 2
mov dword [esp], ebx
call fcn.0046d360
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x46fa3c
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046db90
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x46fa3c
mov dword [esp + 4], 4
mov dword [esp], ebx
call fcn.0046d360
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x46fa3c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
and eax, 0xffffff
inc ebp
mov dword [edi + 4], eax
add edi, 8
mov eax, dword [ecx]
cmp eax, ebp
jle 0x46fa5f
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0046d810
mov word [edi], ax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46f9c3
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x46fa56
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [edx + 8]
mov eax, dword [esp + 0x3c]
jmp 0x46f89d
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 0xc], 0x469310
mov dword [esp + 8], 8
call sub.msvcrt.dll_qsort
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 4
mov dword [esp], ecx
call fcn.0046f2b0
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x46fa3c
mov edx, dword [esp + 0x78]
mov esi, dword [edx]
test esi, esi
jle 0x46fadf
xor edx, edx
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
mov ecx, dword [ebx + edx*8 + 4]
add ecx, esi
mov dword [eax + edx*4], ecx
inc edx
cmp dword [edi], edx
jg 0x46fad1
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], 0
mov dword [edx], eax
jmp 0x46fa3c