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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebx, dword [0x69b710]
mov eax, dword [ebx]
test eax, eax
je 0x509d36
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x78]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jbe 0x509d26
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x58]
add eax, 0x28
push dword [esp + 0x80]
push eax
push ecx
call fcn.0051ad20
add esp, 0xc
cmp dword [esp + 0x58], 0
je 0x509d26
mov eax, dword [esp + 0x60]
movsd xmm0, qword [esp + 0x58]
mov dword [esp + 0x2c], eax
movsd qword [esp + 0x24], xmm0
mov eax, dword [ebx]
test eax, eax
je 0x509e06
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0050df10
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 4], eax
cmp dword [ecx + 0x38], edx
jbe 0x509f68
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x509f68
imul edx, edx, 0xf0
mov edi, dword [ecx + edx]
xor edi, 3
or edi, dword [ecx + edx + 4]
je 0x509f68
add ecx, edx
cmp dword [ecx + 0xcc], eax
jne 0x509f68
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov dword [ecx + 0x40], 0
test eax, eax
je 0x509d13
push edx
call dword [eax + 4]
add esp, 4
mov eax, dword [esp + 0x2c]
movsd xmm0, qword [esp + 0x24]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x509d2c
mov dword [esi], 0
mov eax, esi
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x69ac94]
test al, al
je 0x509c47
movzx ecx, al
cmp ecx, 1
je 0x509d58
cmp ecx, 2
jne 0x509f34
mov al, 2
movzx eax, al
push eax
push dword [0x69ac8c]
call fcn.005313d0
add esp, 8
test al, al
je 0x509c47
mov eax, dword [0x69ac8c]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x509fb4
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
lea edi, [esp + 0xc]
mov dword [esp + 0xc], 0x61f428
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x61efa0
mov dword [esp + 0x18], 0
mov dword [esp + 0x3c], esi
lea esi, [esp + 0x3c]
mov dword [esp + 0x40], edx
movlps qword [esp + 0x44], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], esi
lea esi, [esp + 0x30]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x61f2d4
mov dword [esp], esi
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov ecx, esp
push ecx
push eax
call fcn.00531b00
add esp, 8
jmp 0x509c47
movzx eax, byte [0x69aca0]
test al, al
je 0x509ca2
movzx ecx, al
cmp ecx, 1
je 0x509e28
cmp ecx, 2
jne 0x509f4e
mov al, 2
movzx eax, al
push eax
push dword [0x69ac98]
call fcn.005313d0
add esp, 8
test al, al
je 0x509ca2
mov eax, dword [0x69ac98]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x50a004
mov edx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
movlps qword [esp + 0x44], xmm0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], ecx
cmp dword [edx + 0x38], ebx
jbe 0x509fbb
mov edx, dword [edx + 0x30]
test edx, edx
je 0x509fbb
imul ebx, ebx, 0xf0
mov ebp, dword [edx + ebx]
xor ebp, 3
or ebp, dword [edx + ebx + 4]
je 0x509fbb
add edx, ebx
cmp dword [edx + 0xcc], ecx
jne 0x509fbb
lea ebx, [esp + 0x3c]
lea ecx, [eax + 0x1c]
lea ebp, [esp + 0x50]
add edx, 0xcc
mov dword [esp + 0xc], 0x61f460
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x30]
mov dword [esp + 0x14], ebp
lea ebp, [esp + 0xc]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0x50a090
mov dword [esp + 0x18], 1
mov dword [esp], ebx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov ecx, esp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x61f2d4
push ecx
push eax
call fcn.00531b00
add esp, 8
jmp 0x509ca2
push 0x69ac8c
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x509d58
jmp 0x509c47
push 0x69ac98
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x509e28
jmp 0x509ca2
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x627788
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x51bc80
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 1
push 0x6277a0
push eax
call fcn.005a0aa0
add esp, 8
ud2
push 0x61f400
jmp 0x50a009
lea eax, [esp + 0x34]
mov dword [esp + 0xc], 0x627788
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], 0x51bc80
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x18], 1
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
ud2
push 0x61f430
push 0x22
push 0x61f280
call fcn.005a0a40
add esp, 0xc
ud2