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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
test al, 1
je 0x510c54
mov eax, dword [edi + 0x78]
mov ecx, ebx
push esi
and eax, 0xfffffffc
push eax
push 1
call fcn.00402930
mov esi, eax
mov eax, dword [ebp - 0x14]
test al, 2
je 0x510c6b
mov eax, dword [edi + 0x7c]
mov ecx, ebx
push esi
and eax, 0xfffffffc
push eax
push 2
call fcn.00402930
mov esi, eax
lea eax, [edi + 0x10]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.004e4ce0
mov dword [ebp - 4], eax
test eax, eax
jle 0x510cdd
lfence
xor edi, edi
mov ecx, dword [ebp - 8]
push edi
call fcn.004e40e0
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
cmp edx, 0x80
jge 0x510cc7
mov ecx, dword [ebx]
sub ecx, esi
add ecx, 0xe
cmp ecx, edx
jl 0x510cc7
mov byte [esi], 0x1a
mov byte [esi + 1], dl
add esi, 2
cmp dword [eax + 0x14], 0x10
jb 0x510cb7
mov eax, dword [eax]
push edx
push eax
push esi
call fcn.0053c5b0
add esp, 0xc
add esi, dword [ebp - 0x10]
jmp 0x510cd4
push esi
push eax
push 3
mov ecx, ebx
call fcn.00493510
mov esi, eax
inc edi
cmp edi, dword [ebp - 4]
jl 0x510c84
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x24]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x510d21
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edi, dword [eax + ecx*4 + 4]
lea eax, [edi + 0xc]
push eax
call fcn.0043d7b0
push ebx
push esi
mov eax, dword [eax]
push eax
push edi
push 4
call fcn.004b3650
mov ecx, dword [ebp - 8]
add esp, 0x18
mov edi, dword [ebp - 0xc]
inc ecx
mov esi, eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 4]
jb 0x510cf0
mov eax, dword [edi + 0x34]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x510d61
mov eax, dword [edi + 0x3c]
mov edi, dword [eax + ecx*4 + 4]
lea eax, [edi + 0xc]
push eax
call fcn.0043d7b0
push ebx
push esi
mov eax, dword [eax]
push eax
push edi
push 5
call fcn.004b3650
mov ecx, dword [ebp - 8]
add esp, 0x18
mov edi, dword [ebp - 0xc]
inc ecx
mov esi, eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 4]
jb 0x510d30
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x510da1
mov eax, dword [edi + 0x4c]
mov edi, dword [eax + ecx*4 + 4]
lea eax, [edi + 0xc]
push eax
call fcn.0043d7b0
push ebx
push esi
mov eax, dword [eax]
push eax
push edi
push 6
call fcn.004b3650
mov ecx, dword [ebp - 8]
add esp, 0x18
mov edi, dword [ebp - 0xc]
inc ecx
mov esi, eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 4]
jb 0x510d70
mov eax, dword [edi + 0x54]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x510de1
mov eax, dword [edi + 0x5c]
mov edi, dword [eax + ecx*4 + 4]
lea eax, [edi + 0xc]
push eax
call fcn.0043d7b0
push ebx
push esi
mov eax, dword [eax]
push eax
push edi
push 7
call fcn.004b3650
mov ecx, dword [ebp - 8]
add esp, 0x18
mov edi, dword [ebp - 0xc]
inc ecx
mov esi, eax
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 4]
jb 0x510db0
mov eax, dword [ebp - 0x14]
test al, 8
je 0x510e18
push edi
call fcn.005120d0
add eax, 0x18
push eax
call fcn.0043d7b0
add esp, 8
mov eax, dword [eax]
push ebx
push esi
push eax
push edi
call fcn.005120d0
add esp, 4
push eax
push 8
call fcn.004b3650
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x510e49
push edi
call fcn.005120f0
add eax, 0x18
push eax
call fcn.0043d7b0
add esp, 8
mov eax, dword [eax]
push ebx
push esi
push eax
push edi
call fcn.005120f0
add esp, 4
push eax
push 9
call fcn.004b3650
add esp, 0x14
mov esi, eax
lea eax, [edi + 0x60]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.004487f0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x510e96
lfence
xor edi, edi
cmp esi, dword [ebx]
jb 0x510e70
push esi
mov ecx, ebx
call fcn.00492710
mov esi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e40b0
mov eax, dword [eax]
mov byte [esi], 0x50
inc esi
cdq
push esi
push edx
push eax
call fcn.00402ac0
inc edi
add esp, 0xc
mov esi, eax
cmp edi, dword [ebp - 0x10]
jl 0x510e62
mov edi, dword [ebp - 0xc]
lea eax, [edi + 0x6c]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.004487f0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x510ee4
lfence
xor edi, edi
nop
cmp esi, dword [ebx]
jb 0x510ebe
push esi
mov ecx, ebx
call fcn.00492710
mov esi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004e40b0
mov eax, dword [eax]
mov byte [esi], 0x58
inc esi
cdq
push esi
push edx
push eax
call fcn.00402ac0
inc edi
add esp, 0xc
mov esi, eax
cmp edi, dword [ebp - 0x10]
jl 0x510eb0
mov edi, dword [ebp - 0xc]
test byte [ebp - 0x14], 4
je 0x510f00
mov eax, dword [edi + 0x80]
mov ecx, ebx
push esi
and eax, 0xfffffffc
push eax
push 0xc
call fcn.00402930
mov esi, eax
test byte [edi + 4], 1
je 0x510f23
mov eax, dword [edi + 4]
and eax, 0xfffffffc
push ebx
add eax, 4
push esi
push eax
call fcn.004ad230
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8