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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x54]
push edi
mov edi, ecx
mov ecx, dword [esi + 0x50]
xor ebx, ebx
mov dword [esp + 0x98], ecx
xor ecx, ecx
cmp edi, ebx
sete cl
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], edx
mov edi, 4
xor edx, edx
mov dword [esp + 0xa4], eax
sub edi, ecx
cmp eax, ebx
sete dl
sub edi, edx
mov dword [esp + 0x28], edi
jmp 0x506676
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [0x100ef48c]
cmp ecx, ebx
je 0x5066a2
mov edx, dword [ecx + 0x6a0]
push ebx
push ebx
push 1
add ecx, 0x6a0
lea eax, [esp + 0xa4]
push eax
mov eax, dword [edx + 0x24]
push edi
call eax
call eax
jmp 0x5066b4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xa0]
push ecx
push edi
call dword [0x100cf0d4]
cmp eax, ebx
jne 0x506af2
mov eax, dword [esi + 0x24]
lea ecx, [eax + 4]
mov dword [esp + 0xb4], ebx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call fcn.00535fe0
call dword [0x100cf08c]
mov edx, dword [esp + 0x40]
mov edi, eax
mov eax, dword [edx]
cmp edi, eax
je 0x506747
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
test edx, edx
jne 0x506971
mov eax, dword [esp + 0x40]
push ebx
push edi
push eax
call dword [0x100cf090]
test eax, eax
sete al
test al, al
je 0x506971
mov ecx, dword [esp + 0x48]
mov dword [ecx], ebx
mov eax, dword [esp + 0x48]
add dword [eax], 1
mov al, 1
mov edi, dword [esi + 0x24]
mov byte [esp + 0x54], al
mov dword [esp + 0xc4], ebx
mov edx, dword [esp + 0xc4]
lea eax, [edi + 4]
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
call fcn.00535fe0
call dword [0x100cf08c]
mov edx, dword [esp + 0x80]
mov ebx, eax
mov eax, dword [edx]
cmp ebx, eax
je 0x5067fe
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx]
test edx, edx
jne 0x506988
mov eax, dword [esp + 0x80]
push edx
push ebx
push eax
call dword [0x100cf090]
test eax, eax
sete al
test al, al
je 0x506988
mov ecx, dword [esp + 0x88]
mov dword [ecx], 0
mov eax, dword [esp + 0x88]
add dword [eax], 1
mov al, 1
test al, al
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov byte [esp + 0x94], al
mov dword [esp + 0xac], edx
je 0x50686f
mov eax, dword [esp + 0x90]
mov ecx, dword [eax + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [eax + 0x10]
mov edi, eax
add eax, 0x10
cmp dword [ecx], 0
jne 0x50686f
mov edx, ecx
mov dword [edx], 0
mov eax, dword [edi + 8]
push 0
push eax
call dword [0x100cf084]
mov ecx, dword [edi + 0xc]
test ecx, ecx
lea eax, [edi + 0xc]
jle 0x50686f
push eax
call dword [0x100cf080]
mov edx, dword [edi + 0x14]
push 0
push 1
push edx
call dword [0x100cf088]
test ebx, ebx
mov ecx, dword [esp + 0xac]
mov eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jne 0x50688c
test ecx, ecx
je 0x506a92
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x58]
call fcn.005095f0
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push ecx
lea edi, [esp + 0x18]
call fcn.004cb0e0
xor ebx, ebx
cmp dword [esp + 0x60], ebx
jne 0x5068c7
cmp dword [esp + 0x64], ebx
je 0x506914
mov edi, dword [esp + 0x58]
push edi
call dword [0x100cf080]
test eax, eax
jne 0x5068f5
mov esi, edi
call fcn.00507be0
mov eax, dword [edi + 0xc]
mov ecx, dword [0x100ef540]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
push eax
mov eax, dword [edi + 8]
push eax
call edx
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x60]
cmp eax, ebx
mov edx, dword [esp + 0x64]
jne 0x506905
cmp edx, ebx
je 0x506914
mov ecx, dword [0x100ef540]
mov edi, dword [ecx]
push edx
push eax
mov eax, dword [edi + 0x24]
call eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 0
lea edi, [ebx + 0x18]
je 0x50699f
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov eax, dword [esi + 0x24]
push ecx
push edx
push eax
call fcn.00509680
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edi]
je 0x506b1a
lea edx, [esp + 0x74]
push edx
push edi
lea eax, [esi + 0x60]
call fcn.00508270
test eax, eax
je 0x506a20
mov eax, dword [esp + 0x74]
push eax
call dword [0x100cf0a0]
jmp 0x506a20
push edi
lea eax, [esp + 0x3c]
call fcn.00535290
test al, al
jne 0x506747
jmp 0x506750
push ebx
lea eax, [esp + 0x7c]
call fcn.00535290
test al, al
jne 0x5067fe
jmp 0x50680a
mov ecx, dword [esi + 0x5c]
test ecx, ecx
mov edx, dword [esi + 0x58]
push edx
jne 0x506a16
call dword [0x100cf0a0]
lea eax, [esp + 0x34]
push esi
push eax
call fcn.005079c0
mov edi, dword [esp + 0x3c]
add esp, 8
lea ebx, [edi + 0x10]
push ebx
xor esi, esi
push esi
push edi
push 0x10095ec0
push esi
push esi
call dword [0x100cf224]
mov dword [edi + 0xc], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
mov dword [esp + 0x30], edi
call edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 8]
push ebx
add eax, 0xa8
call fcn.00508e40
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push edi
call edx
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
push edi
mov dword [esp + 0x30], esi
call ecx
mov dword [esp + 0x34], esi
mov esi, dword [ebp + 8]
jmp 0x506a1c
call dword [0x100cf0a0]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
xor ecx, ecx
cmp edi, ecx
jne 0x506a30
cmp dword [esp + 0x1c], ecx
je 0x506a6f
push ebx
call dword [0x100cf080]
test eax, eax
jne 0x506a5a
mov esi, ebx
call fcn.00507be0
mov edx, dword [ebx + 0xc]
mov ecx, dword [0x100ef540]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push edx
mov edx, dword [ebx + 8]
push edx
call eax
mov esi, dword [ebp + 8]
mov ecx, dword [0x100ef540]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push eax
push edi
call edx
xor ecx, ecx
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ecx
jne 0x50688c
cmp dword [esp + 0x24], 0
jne 0x50688c
cmp byte [esp + 0x54], 0
je 0x506670
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [edi + 0x10]
cmp dword [ecx], 0
lea eax, [edi + 0x10]
jne 0x506670
mov edx, ecx
mov dword [edx], 0
mov eax, dword [edi + 8]
push 0
push eax
call dword [0x100cf084]
mov ecx, dword [edi + 0xc]
test ecx, ecx
lea eax, [edi + 0xc]
jle 0x506670
push eax
call dword [0x100cf080]
mov edx, dword [edi + 0x14]
push 0
push 1
push edx
call dword [0x100cf088]
jmp 0x506670
cmp eax, 1
je 0x506bd8
cmp eax, 2
je 0x506bca
cmp eax, 0x83
jne 0x506676
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x18], 0
jne 0x506b28
cmp dword [esp + 0x1c], 0
je 0x506b7b
push ebx
call dword [0x100cf080]
test eax, eax
jne 0x506b4f
mov esi, ebx
call fcn.00507be0
mov edx, dword [ebx + 0xc]
mov ecx, dword [0x100ef540]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push edx
mov edx, dword [ebx + 8]
push edx
call eax
push 0
push 0
lea esi, [esp + 0x18]
call fcn.004af920
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 0x1c]
jne 0x506b6c
test edx, edx
je 0x506b7b
mov ecx, dword [0x100ef540]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x24]
push eax
call edx
cmp byte [esp + 0x54], 0
je 0x506bca
mov esi, dword [esp + 0x50]
mov ecx, dword [esi + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [esi + 0x10]
cmp dword [ecx], 0
lea eax, [esi + 0x10]
jne 0x506bca
mov edx, ecx
mov dword [edx], 0
mov eax, dword [esi + 8]
push 0
push eax
call dword [0x100cf084]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x506bca
push eax
call dword [0x100cf080]
mov edx, dword [esi + 0x14]
push 0
push 1
push edx
call dword [0x100cf088]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edi, [esi + 0xa8]
mov eax, edi
call fcn.00509070
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x506c50
lea ecx, [ecx]
lea eax, [esp + 0x30]
mov ecx, edi
call fcn.005090e0
mov esi, dword [eax]
cmp esi, ebx
je 0x506c09
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
cmp dword [esi + 0xc], ebx
je 0x506c42
mov edx, dword [esi + 0x14]
push edx
call dword [0x100cf0a0]
mov ecx, dword [0x100ef48c]
cmp ecx, ebx
mov eax, dword [esi + 0xc]
je 0x506c39
push ebx
push ebx
add ecx, 0x670
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
call eax
jmp 0x506c42
push 0xffffffffffffffff
push eax
call dword [0x100cf220]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push esi
call ecx
cmp dword [esp + 0x30], ebx
jne 0x506bf0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8