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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
mov dword [esp + 0x18], ecx
mov edx, 0x4025f0
mov ecx, dword [0x5a2fd8]
push edi
call fcn.00452cef
mov ecx, dword [0x5a2fd8]
mov edx, 0x401be0
mov dword [esp + 0x6c], eax
call fcn.00452cef
mov ecx, dword [0x5a2fd8]
mov esi, eax
mov edx, 0x402640
mov dword [esp + 0x70], esi
call fcn.00452cef
mov ecx, dword [0x5a2fc8]
xor ebx, ebx
mov edx, 0x4025e4
mov dword [esp + 0x74], eax
mov byte [esp + 0x78], bl
call fcn.00452cef
mov ecx, dword [0x5a2fc4]
mov edx, 0x40261c
mov dword [esp + 0x7c], eax
call fcn.00452cef
mov ecx, dword [0x5a2fc8]
mov edi, eax
mov edx, 0x4025d8
mov dword [esp + 0x80], edi
call fcn.00452cef
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
test esi, esi
jne 0x517ae6
test edi, edi
je 0x517eb5
push 0xc
pop ecx
call fcn.0043d6d0
mov dword [esp + 0x20], eax
test eax, eax
je 0x517b00
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
jmp 0x517b02
mov eax, ebx
lea esi, [esp + 0x6c]
mov dword [0x5a5008], eax
mov dword [esp + 0x20], esi
lea edi, [esp + 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x60], ebx
je 0x517d56
mov edi, dword [esp + 0x5c]
mov esi, ebx
mov dword [esp + 0x24], esi
mov edx, dword [edi + 0x18]
cmp edx, 0x3ffffffe
ja 0x517b4a
shl edx, 2
xor ecx, ecx
call fcn.0044ee3b
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x517b4f
call fcn.004fd4dc
mov dword [esp + 0x4c], edi
mov edi, esi
mov dword [esp + 0x40], fcn.0045253a
mov dword [esp + 0x44], 0x478d10
mov dword [esp + 0x48], ebx
lea eax, [esp + 0x40]
push eax
call fcn.0045253a
test al, al
je 0x517b82
mov eax, dword [esp + 0x48]
mov dword [edi], eax
add edi, 4
jmp 0x517b69
mov eax, dword [esp + 0x5c]
push 0x518a78
push 4
push dword [eax + 0x18]
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, dword [esp + 0x74]
add esp, 0x10
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x14], edx
test edx, edx
je 0x517d56
mov eax, dword [esp + 0x18]
cmp dword [edx + 8], ebx
je 0x517d40
mov ecx, dword [edx + 0x40]
and ecx, 0x7800
cmp ecx, 0x5000
je 0x517c3c
mov eax, dword [edx + 0x10]
mov esi, 0x400
mov byte [esp + 0x13], bl
test word [eax + 0xcc], si
jne 0x517c04
cmp dword [edx + 0x24], ebx
jne 0x517c47
cmp ecx, 0x5800
je 0x517c47
mov eax, dword [0x5a510c]
test eax, eax
je 0x517c43
mov edi, dword [eax + 0xc]
lea ecx, [esp + 0x14]
mov esi, dword [eax]
push edx
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call fcn.004cc63b
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
lea eax, [edi + esi]
cmp ecx, eax
je 0x517c43
mov byte [esp + 0x13], 1
jmp 0x517c47
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x1c]
call fcn.00438156
test al, al
je 0x517c6c
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x13], bl
je 0x517d40
add dword [esp + 0x24], 4
jmp 0x517d40
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x517c84
mov ecx, dword [esp + 0x18]
mov edi, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ecx
jmp 0x517c88
mov ecx, dword [esp + 0x34]
cmp byte [esp + 0x13], bl
je 0x517d03
mov esi, dword [esp + 0x24]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ecx
mov eax, dword [esi]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa0], eax
mov al, byte [esp + 0x68]
mov byte [esp + 0xa4], al
lea eax, [esp + 0x8c]
push eax
call fcn.0051f694
add esi, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x517d40
mov ecx, edx
call fcn.00439acf
test byte [eax + 0xd4], 1
je 0x517d19
inc dword [esp + 0x28]
jmp 0x517cf9
mov ecx, dword [esp + 0x14]
call fcn.00439acf
mov edx, dword [esp + 0x14]
test dword [eax + 0xd4], 0x4000
mov eax, dword [esp + 0x18]
je 0x517d3c
inc dword [esp + 0x2c]
jmp 0x517d40
inc dword [esp + 0x30]
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
test edx, edx
jne 0x517bd0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x8c]
add esi, 0x10
mov dword [esp + 0x20], esi
cmp esi, eax
jne 0x517b0f
mov eax, dword [0x5a5008]
cmp dword [eax + 4], ebx
jbe 0x517eb5
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [0x5a5008]
lea edi, [esp + 0x40]
push 7
mov esi, dword [eax]
xor eax, eax
add esi, ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0x58]
mov edi, dword [esp + 0x4c]
test cl, cl
movzx esi, cl
sete al
neg esi
sbb esi, esi
and esi, 0x10
lea eax, [eax*4 + 0xc]
test edi, edi
jne 0x517dbe
test cl, cl
je 0x517dea
push ecx
mov ecx, dword [esp + 0x20]
push 3
push ebx
push eax
push 6
push dword [esp + 0x54]
call fcn.00501155
push ecx
mov ecx, dword [esp + 0x20]
push 3
push ebx
push esi
push 6
push dword [esp + 0x54]
call fcn.00501155
mov cl, byte [esp + 0x58]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x517e9b
mov edx, dword [esp + 0x44]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], edx
test cl, cl
jne 0x517e9b
lea esi, [esp + 0x34]
cmp byte [0x5a501d], cl
je 0x517e40
add edi, dword [esp + 0x50]
shl edi, 3
push ecx
mov ecx, dword [esp + 0x20]
push 6
push ebx
push edi
push 6
push dword [esi]
call fcn.00501155
add esi, 4
lea eax, [esp + 0x3c]
cmp esi, eax
jne 0x517e21
jmp 0x517e9b
mov ecx, dword [esp + 0x50]
add eax, ecx
add edi, eax
shl edi, 3
push ecx
mov ecx, dword [esp + 0x20]
push 6
push ebx
push edi
push 6
push dword [esi]
call fcn.00501155
add esi, 4
lea eax, [esp + 0x3c]
cmp esi, eax
jne 0x517e4b
mov esi, dword [esp + 0x50]
add esi, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
push 4
push ebx
shl esi, 3
push esi
push 6
push dword [esp + 0x58]
call fcn.00501155
push ecx
mov ecx, dword [esp + 0x20]
push 5
push ebx
push esi
push 6
push dword [esp + 0x5c]
call fcn.00501155
mov eax, dword [0x5a5008]
inc ebx
mov ecx, dword [esp + 0x20]
add ecx, 0x1c
mov dword [esp + 0x20], ecx
cmp ebx, dword [eax + 4]
jb 0x517d84
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret