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

Disassembly:
push 0xffffffffffffffff
push 0x8681b9
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
xor ebp, ebp
cmp dword [edi + 0x17c], ebp
je 0x51d46f
call fcn.007c9a2f
fld dword [0x404c6c]
mov esi, dword [eax + 4]
fstp dword [esp + 0x68]
fld dword [0x404c68]
lea ecx, [esp + 0x5c]
fstp dword [esp + 0x6c]
mov dword [esp + 0x5c], ebp
fld dword [0x404c64]
mov dword [esp + 0x60], ebp
fstp dword [esp + 0x70]
mov dword [esp + 0x64], 0x11
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0xa
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
call fcn.005ea230
mov esi, dword [esi + 0x10c4]
mov dword [esp + 0x94], ebp
cmp esi, ebp
je 0x51d026
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x51d4cc
lea eax, [esp + 0x30]
push eax
mov edi, esi
mov ebx, dword [edi + 8]
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
add edi, 8
push edx
push ebx
lea ecx, [esp + 0x6c]
call fcn.005a8560
cmp eax, ebp
jne 0x51d01b
cmp dword [esp + 0x5c], ebp
jne 0x51d007
mov eax, dword [esp + 0x64]
push 1
push eax
lea ecx, [esp + 0x64]
call fcn.00635dd0
test al, al
je 0x51d05f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
push ebx
lea ecx, [esp + 0x68]
call fcn.0051a210
mov dword [eax + 4], edi
cmp esi, ebp
jne 0x51cfb7
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x17c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push ebp
push ebp
push eax
call edx
mov eax, dword [edi + 0x180]
cmp eax, ebp
je 0x51d04c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push 1
push ebp
push ebp
push eax
call edx
xor esi, esi
mov dword [esp + 0x24], esi
cmp esi, ebp
jne 0x51d069
cmp byte [edi + 0x4a04], 0
jmp 0x51d075
push 0x8007000e
call fcn.004a8210
cmp esi, 1
jne 0x51d07b
cmp byte [edi + 0x4a05], 0
je 0x51d458
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], 0xa
mov byte [esp + 0x94], 1
cmp esi, ebp
jne 0x51d0ab
lea eax, [edi + 0x374]
jmp 0x51d0bd
cmp dword [edi + 0x180], ebp
je 0x51d5a0
lea eax, [edi + 0x38c]
mov eax, dword [eax]
cmp eax, ebp
je 0x51d344
jmp 0x51d0d4
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x51d4cc
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.005a8560
cmp eax, ebp
je 0x51d336
mov ebp, dword [eax + 4]
mov esi, dword [ebp + 4]
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x51d4cc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x94], 2
test esi, esi
je 0x51d165
test esi, 0xffff0000
jne 0x51d165
movzx esi, si
push esi
call fcn.007cfe78
test eax, eax
je 0x51d173
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004b1230
jmp 0x51d16f
push esi
lea ecx, [esp + 0x20]
call fcn.004b2120
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebp + 8]
mov byte [esp + 0x94], 3
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x51d4cc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x94], 4
test esi, esi
je 0x51d1d0
test esi, 0xffff0000
jne 0x51d1d0
movzx esi, si
push esi
call fcn.007cfe78
test eax, eax
je 0x51d1de
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.004b1230
jmp 0x51d1da
push esi
lea ecx, [esp + 0x1c]
call fcn.004b2120
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x94], 5
jne 0x51d203
mov eax, dword [ecx + 0x17c]
mov edx, dword [eax]
push ebx
push edi
push eax
mov eax, dword [edx + 0x3c]
call eax
jmp 0x51d215
mov eax, dword [ecx + 0x180]
mov edx, dword [eax]
push 1
push ebx
push edi
push eax
mov eax, dword [edx + 0x48]
call eax
test eax, eax
js 0x51d489
mov ebx, dword [esp + 0x48]
lea ecx, [esp + 0x44]
call fcn.005dfd30
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edi, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], eax
mov esi, dword [ebp]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x10]
mov byte [esp + 0x94], 8
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x51d276
cmp eax, dword [esi - 0x10]
jne 0x51d276
lea ebp, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x51d2ae
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x51d5ae
mov eax, dword [esi - 0xc]
mov dword [ebp + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.0080217f
add esp, 0x10
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add ebp, 0x10
mov dword [ecx], ebp
mov dword [esp + 0x54], edx
mov dword [edi + 4], ebx
mov dword [edi], 0
mov eax, dword [esp + 0x48]
inc dword [esp + 0x4c]
test eax, eax
je 0x51d2d8
mov dword [eax], edi
jmp 0x51d2dc
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x48], edi
mov byte [esp + 0x94], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x94], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d330
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp dword [esp + 0x28], ebp
jne 0x51d0d0
mov esi, dword [esp + 0x24]
cmp dword [edi + 0x2e8], 2
jne 0x51d447
push 0x7c
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004f85f0
add esp, 0xc
push 0x40e1b0
push 0x4035a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 9
call fcn.004aa070
push 0xbb8
call fcn.007cff5d
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x51d4cc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x8138
mov byte [esp + 0x9c], 0xa
call fcn.007cfe78
cmp eax, ebp
je 0x51d3ce
push 0x8138
push eax
lea ecx, [esp + 0x28]
call fcn.004a8d10
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0xa8], 0xb
call fcn.004ac680
add esp, 0xc
mov ecx, edi
call fcn.004f8390
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x94], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d41f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x94], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d447
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 0
call fcn.004afe70
inc esi
mov dword [esp + 0x24], esi
cmp esi, 2
jl 0x51d052
lea ecx, [esp + 0x5c]
call fcn.0050c700
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x17c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 0
push 0
push eax
call edx
mov eax, dword [esi + 0x180]
test eax, eax
je 0x51d4b7
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push 1
push 0
push 0
push eax
call edx
push 0xbb8
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x51d4d6
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0x8137
mov byte [esp + 0x9c], 6
call fcn.007cfe78
test eax, eax
je 0x51d50b
push 0x8137
push eax
lea ecx, [esp + 0x30]
call fcn.004a8d10
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebp
lea edx, [esp + 0x30]
push edx
push ecx
mov byte [esp + 0xa8], 7
call fcn.004ac680
add esp, 0xc
mov ecx, esi
call fcn.004f8390
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x94], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x94], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d57c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [ebx - 0x10]
mov byte [esp + 0x94], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51d5a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
call fcn.004afe70
jmp 0x51d466
call fcn.004a8580
int3