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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x50a0f0
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [esi + 0x80]
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
lea eax, [edx + 0x48]
push edi
push eax
call fcn.0050f0d0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x507a7a
mov eax, dword [0x69b710]
mov dword [esi + 0x68], edi
mov edi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 8], ebx
mov dword [esi], edx
test eax, eax
je 0x507a90
lea eax, [esi + 0x40]
mov dword [esi + 0x40], 2
mov dword [esi + 0x50], 0
mov dword [esi + 4], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [esi + 0x68]
add ecx, eax
jo 0x50781e
mov eax, ecx
mov dword [edi + 0x4c], ecx
lea ecx, [edi + 0x14]
mov dword [esi + 0x6c], ecx
jmp 0x50783b
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [eax + 0x4c]
test eax, eax
jle 0x50797b
mov dword [esi + 0x88], 1
push dword [ebp + 0x10]
push dword [esi + 0x6c]
lea eax, [esi + 0x18]
push eax
call fcn.0051af20
add esp, 0xc
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x507a09
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
cmp dword [ecx + 0x38], edi
jbe 0x507b81
mov ecx, dword [esi + 0x34]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x507b81
imul ebx, edi, 0xf0
mov edx, dword [ecx + ebx]
xor edx, 3
or edx, dword [ecx + ebx + 4]
je 0x507b81
add ecx, ebx
cmp dword [ecx + 0xcc], eax
jne 0x507b81
movzx edx, byte [ecx + 0x20]
add dl, 0xfa
movzx ebx, dl
cmp dl, 6
mov edx, 6
cmovae ebx, edx
cmp bl, 5
je 0x5078d6
movzx edx, bl
cmp edx, 3
jne 0x5078dc
cmp byte [ecx + 0x21], 0
jne 0x507909
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x507c08
cmp dword [ecx + 0xcc], eax
jne 0x507c08
cmp dword [ecx + 0xd8], 0
je 0x507830
mov edx, dword [esi + 0x34]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x507bc6
cmp dword [ecx + 0xcc], eax
jne 0x507bc6
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x34], eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00508730
add esp, 8
xor eax, eax
cmp dword [esi + 0x34], 0x3b9aca00
mov ecx, dword [esi + 0x14]
movsd xmm0, qword [esi + 0xc]
setne al
mov dword [esi + 0x20], ecx
movsd qword [esi + 0x18], xmm0
push eax
lea eax, [esi + 0x18]
push eax
push dword [ebp + 0x14]
call fcn.0050e8b0
add esp, 0xc
jmp 0x507830
cmp dword [esi + 0x40], 2
je 0x507a7a
lea eax, [esi + 0x38]
mov dword [esi + 0x88], 0
push eax
push dword [esi + 4]
call fcn.00532270
mov edx, dword [esi]
mov ebx, dword [esi + 8]
add esp, 8
cmp dword [esi + 0x40], 2
je 0x507a7a
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x88], 2
push ecx
push eax
push dword [esi + 4]
call fcn.005322a0
add esp, 0xc
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 8]
mov edx, dword [esi]
cmp eax, 2
je 0x507a7a
test eax, eax
je 0x507a7a
mov eax, dword [esi + 0x44]
lock dec dword [eax]
jne 0x507a7a
lea eax, [esi + 0x44]
mov dword [esi + 0x88], 0xffffffff
push eax
call fcn.0042de60
mov edx, dword [esi]
add esp, 4
jmp 0x507a7a
cmp dword [esi + 0x40], 2
je 0x507a75
lea eax, [esi + 0x38]
mov dword [esi + 0x88], 0
push eax
push dword [esi + 4]
call fcn.00532270
add esp, 8
cmp dword [esi + 0x40], 2
je 0x507a75
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x88], 3
push ecx
push eax
push dword [esi + 4]
call fcn.005322a0
add esp, 0xc
mov eax, dword [esi + 0x40]
cmp eax, 2
je 0x507a75
test eax, eax
je 0x507a75
mov eax, dword [esi + 0x44]
lock dec dword [eax]
jne 0x507a75
lea eax, [esi + 0x44]
mov dword [esi + 0x88], 0xffffffff
push eax
call fcn.0042de60
add esp, 4
mov ebx, dword [esi + 8]
mov edx, dword [esi]
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x69ab8c]
test al, al
je 0x5077fb
movzx ecx, al
cmp ecx, 1
je 0x507ab2
cmp ecx, 2
jne 0x507b65
mov al, 2
movzx eax, al
push eax
push dword [0x69ab84]
call fcn.005313d0
mov edx, dword [esi]
add esp, 8
test al, al
je 0x5077fb
mov eax, dword [0x69ab84]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x507c4a
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
lea edx, [esi + 0x18]
lea edi, [esi + 0xc]
movlps qword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x5c], edi
mov dword [esi + 0xc], edx
lea edx, [esi + 0x68]
mov dword [esi + 0x60], 1
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x5c]
lea edi, [esi + 0x38]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0x61f32c
push ecx
push eax
push edi
call fcn.005310b0
add esp, 0xc
cmp dword [esi + 0x40], 2
lea eax, [esi + 0x40]
mov dword [esi + 4], eax
jne 0x507b44
mov edx, dword [esi]
mov edi, dword [ebp + 8]
jmp 0x50780f
mov dword [esi + 0x88], 0
push edi
push eax
call fcn.00532240
mov ebx, dword [esi + 8]
add esp, 8
mov edx, dword [esi]
mov edi, dword [ebp + 8]
jmp 0x50780f
push 0x69ab84
call fcn.0059e2f0
mov edx, dword [esi]
add esp, 4
test al, al
jne 0x507ab2
jmp 0x5077fb
lea eax, [esi + 0x60]
mov dword [esi + 0x18], 0x627788
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 0xc]
mov dword [esi + 0x10], 0x51bc80
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 1
push 0x627790
lea eax, [esi + 0x18]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x507c48
lea eax, [esi + 0x74]
mov dword [esi + 0x18], 0x627788
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x60], 0x51bc80
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 1
push 0x627790
lea eax, [esi + 0x18]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x507c48
lea eax, [esi + 0x60]
mov dword [esi + 0x18], 0x627788
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 0xc]
mov dword [esi + 0x10], 0x51bc80
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 1
push 0x627790
lea eax, [esi + 0x18]
push eax
call fcn.005a0aa0
add esp, 8
ud2
push 0x61f37c
push 0x22
push 0x61f280
call fcn.005a0a40
add esp, 0xc
ud2