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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], esp
mov dword [esi + 0x80], 0xffffffff
mov dword [esi + 0x7c], 0x50a110
mov ebx, ecx
lea eax, [esi + 0x78]
mov ecx, dword fs:[0]
mov dword [esi + 0x78], ecx
mov dword fs:[0], eax
mov eax, dword [0x69b710]
mov dword [esi + 0x60], edx
mov eax, dword [eax]
mov dword [esi + 0x3c], ebx
test eax, eax
je 0x5084db
lea eax, [esi + 0x48]
mov dword [esi + 0x48], 2
mov dword [esi + 0x58], 0
mov dword [esi], eax
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esi + 0x60]
add ecx, eax
jo 0x5082c4
mov eax, ecx
mov dword [ebx + 0x4c], ecx
lea ecx, [ebx + 0x14]
mov dword [esi + 0x64], ecx
jmp 0x5082d6
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + 0x4c]
test eax, eax
jle 0x508416
mov dword [esi + 0x80], 1
push dword [ebp + 8]
push dword [esi + 0x64]
lea eax, [esi + 0x10]
push eax
call fcn.0051b120
add esp, 0xc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x508460
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
cmp dword [ecx + 0x38], edi
jbe 0x5085bc
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x5085bc
imul ebx, edi, 0xf0
mov edx, dword [ecx + ebx]
xor edx, 3
or edx, dword [ecx + ebx + 4]
je 0x5085bc
add ecx, ebx
cmp dword [ecx + 0xcc], eax
jne 0x5085bc
movzx edx, byte [ecx + 0x20]
add dl, 0xfa
movzx ebx, dl
cmp dl, 6
mov edx, 6
cmovae ebx, edx
cmp bl, 5
je 0x508371
movzx edx, bl
cmp edx, 3
jne 0x508377
cmp byte [ecx + 0x21], 0
jne 0x5083a4
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], eax
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x508643
cmp dword [ecx + 0xcc], eax
jne 0x508643
cmp dword [ecx + 0xd8], 0
je 0x5082d0
mov edx, dword [esi + 0x2c]
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], eax
mov dword [esi + 4], edx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x508601
cmp dword [ecx + 0xcc], eax
jne 0x508601
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x2c], eax
lea eax, [esi + 4]
push eax
push dword [esi + 0x3c]
call fcn.00508730
add esp, 8
xor eax, eax
cmp dword [esi + 0x2c], 0x3b9aca00
mov ecx, dword [esi + 0xc]
movsd xmm0, qword [esi + 4]
setne al
mov dword [esi + 0x18], ecx
movsd qword [esi + 0x10], xmm0
push eax
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0050e8b0
add esp, 0xc
jmp 0x5082d0
cmp dword [esi + 0x48], 2
je 0x5084ca
lea eax, [esi + 0x40]
mov dword [esi + 0x80], 0
push eax
push dword [esi]
call fcn.00532270
add esp, 8
cmp dword [esi + 0x48], 2
je 0x5084ca
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x80], 2
push ecx
push eax
push dword [esi]
call fcn.005322a0
add esp, 0xc
jmp 0x5084a0
cmp dword [esi + 0x48], 2
je 0x5084ca
lea eax, [esi + 0x40]
mov dword [esi + 0x80], 0
push eax
push dword [esi]
call fcn.00532270
add esp, 8
cmp dword [esi + 0x48], 2
je 0x5084ca
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov dword [esi + 0x80], 3
push ecx
push eax
push dword [esi]
call fcn.005322a0
add esp, 0xc
mov eax, dword [esi + 0x48]
cmp eax, 2
je 0x5084ca
test eax, eax
je 0x5084ca
mov eax, dword [esi + 0x4c]
lock dec dword [eax]
jne 0x5084ca
lea eax, [esi + 0x4c]
mov dword [esi + 0x80], 0xffffffff
push eax
call fcn.0042de60
add esp, 4
mov eax, dword [esi + 0x78]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x69ab8c]
test al, al
je 0x5082a2
movzx ecx, al
cmp ecx, 1
je 0x5084fd
cmp ecx, 2
jne 0x5085a2
mov al, 2
movzx eax, al
push eax
push dword [0x69ab84]
call fcn.005313d0
add esp, 8
test al, al
je 0x5082a2
mov eax, dword [0x69ab84]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x508685
mov edi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
lea ecx, [eax + 0x1c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
lea edx, [esi + 0x10]
lea edi, [esi + 4]
movlps qword [esi + 0x18], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], edi
mov dword [esi + 4], edx
lea edx, [esi + 0x60]
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
lea edi, [esi + 0x40]
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x61f32c
push ecx
push eax
push edi
call fcn.005310b0
add esp, 0xc
cmp dword [esi + 0x48], 2
lea eax, [esi + 0x48]
mov dword [esi], eax
je 0x5082b5
mov dword [esi + 0x80], 0
push edi
push eax
call fcn.00532240
mov ebx, dword [esi + 0x3c]
add esp, 8
jmp 0x5082b5
push 0x69ab84
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x5084fd
jmp 0x5082a2
lea eax, [esi + 0x34]
mov dword [esi + 0x10], 0x627788
mov dword [esi + 0x14], 1
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
lea eax, [esi + 4]
mov dword [esi + 8], 0x51bc80
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
push 0x627790
lea eax, [esi + 0x10]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x508683
lea eax, [esi + 0x6c]
mov dword [esi + 0x10], 0x627788
mov dword [esi + 0x14], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], eax
lea eax, [esi + 0x30]
mov dword [esi + 0x34], 0x51bc80
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
push 0x627790
lea eax, [esi + 0x10]
push eax
call fcn.005a0aa0
add esp, 8
jmp 0x508683
lea eax, [esi + 0x34]
mov dword [esi + 0x10], 0x627788
mov dword [esi + 0x14], 1
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
lea eax, [esi + 4]
mov dword [esi + 8], 0x51bc80
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
push 0x627790
lea eax, [esi + 0x10]
push eax
call fcn.005a0aa0
add esp, 8
ud2
push 0x61f37c
push 0x22
push 0x61f280
call fcn.005a0a40
add esp, 0xc
ud2