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

Disassembly:
push 0xffffffffffffffff
push 0x601893
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x28], eax
mov edi, edx
mov dword [esp + 0x18], ecx
xor ebx, ebx
mov dword [esp + 0xc8], ebx
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov byte [esp + 0xc8], 1
xor esi, esi
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.004855a0
test eax, eax
jbe 0x500b8f
jmp 0x500a24
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x500a37
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x500a3d
call dword [0x6105e8]
mov edx, dword [edi + 4]
mov ebp, dword [edx + esi*8]
lea eax, [edx + esi*8]
mov esi, dword [eax + 4]
cmp esi, ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
je 0x500a61
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push 0x62b7c8
push eax
mov byte [esp + 0xd4], 2
call dword [0x61050c]
add esp, 0xc
push 0x62b7c8
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xd4], 3
call dword [0x61051c]
add esp, 0xc
push eax
lea edx, [ebp + 0x10]
push edx
mov byte [esp + 0xd0], 4
call dword [0x610580]
add esp, 8
lea ecx, [esp + 0x58]
mov bl, al
mov byte [esp + 0xc8], 3
call dword [0x6105a0]
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 2
call dword [0x6105a0]
test bl, bl
jne 0x500b31
test esi, esi
mov byte [esp + 0xc8], 1
je 0x500b13
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500b13
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500b13
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x1c]
add esi, 1
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.004855a0
xor ebx, ebx
cmp esi, eax
jb 0x500a20
jmp 0x500b8b
test esi, esi
mov ebx, ebp
mov dword [esp + 0x20], ebx
je 0x500b4b
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0xc8], 1
je 0x500b81
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x500b81
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500b81
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test ebp, ebp
jne 0x500e7d
xor ebx, ebx
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x9c]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
call dword [0x61049c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0xd4], 5
call fcn.004f9a30
lea ecx, [esp + 0x74]
push ecx
push eax
mov byte [esp + 0xd0], 6
call fcn.0051ff50
add esp, 8
test al, al
lea ecx, [esp + 0x34]
sete bl
mov byte [esp + 0xc8], 5
call dword [0x6105a0]
test bl, bl
je 0x500c9c
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 1
call dword [0x6105a0]
test ebp, ebp
mov byte [esp + 0xc8], 0
je 0x500c50
lea edx, [ebp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x500c50
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500c50
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov dword [esp + 0xc8], 0xffffffff
mov esi, dword [esp + 0xdc]
test esi, esi
je 0x500fc4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500fc4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500fc4
mov eax, dword [esi]
mov ecx, esi
jmp 0x500fbf
push 0xa0
call fcn.005e694e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xc8], 7
je 0x500cc6
push 0
push edi
push eax
call fcn.00512e40
mov esi, eax
jmp 0x500cc8
xor esi, esi
mov byte [esp + 0xc8], 5
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], esi
call fcn.004546f0
push esi
push esi
call fcn.005ce9b0
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
push 0x62b7c8
mov bl, 8
push ecx
mov byte [esp + 0xdc], bl
call dword [0x61050c]
add esp, 0x14
push 0x62b7c8
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xd4], 9
call dword [0x61051c]
add esp, 0xc
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xcc], 0xa
call dword [0x61059c]
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 9
call dword [0x6105a0]
lea ecx, [esp + 0x58]
mov byte [esp + 0xc8], bl
call dword [0x6105a0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.004f9a30
push eax
lea ecx, [esi + 0x2c]
mov byte [esp + 0xcc], 0xb
call dword [0x61059c]
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], bl
call dword [0x6105a0]
mov eax, dword [esp + 0x94]
mov dword [esi + 0x60], eax
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0x80]
mov dword [esi + 0x4c], edx
mov eax, dword [esp + 0x84]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x54], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x58], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x5c], eax
lea eax, [esp + 0x2c]
call fcn.00452170
mov esi, dword [esp + 0x30]
cmp esi, ebp
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
je 0x500e30
test esi, esi
je 0x500dfa
lea ecx, [esi + 4]
mov edx, 1
lock xadd dword [ecx], edx
test ebp, ebp
je 0x500e2a
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500e2a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500e2a
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
mov dword [esp + 0x24], esi
mov ebp, esi
test esi, esi
mov byte [esp + 0xc8], 5
je 0x500e66
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500e66
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500e66
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xc8], 1
call dword [0x6105a0]
jmp 0x500e81
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd8]
sub esp, 8
test edi, edi
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x24], esp
mov dword [eax + 4], edi
je 0x500ead
lea edx, [edi + 4]
mov eax, 1
lock xadd dword [edx], eax
sub esp, 8
test ebp, ebp
mov eax, esp
mov dword [eax], ebx
mov dword [esp + 0x3c], esp
mov dword [eax + 4], ebp
je 0x500ecb
lea ecx, [ebp + 4]
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0xe4], 0xd
call fcn.004f9a30
mov byte [esp + 0xd8], 0xe
mov ecx, dword [esp + 0xe4]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0xe4], 0xf
call fcn.004ffd20
mov eax, dword [esp + 0x70]
add esp, 0x1c
test eax, eax
je 0x500f41
mov esi, eax
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500f41
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500f41
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 1
call dword [0x6105a0]
test ebp, ebp
mov byte [esp + 0xc8], 0
je 0x500f8b
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500f8b
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500f8b
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
test edi, edi
mov dword [esp + 0xc8], 0xffffffff
je 0x500fc4
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x500fc4
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x500fc4
mov eax, dword [edi]
mov ecx, edi
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005e693f
add esp, 0xb8
ret