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

Disassembly:
push 0xffffffffffffffff
push 0x5dec48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x18], edx
mov dx, word [esi + 0x20]
and dx, 0xfff9
cmp dword [esp + 0x88], 0
movzx edx, dx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jne 0x517d52
cmp dword [esp + 0x84], 0
je 0x517cf6
cmp eax, dword [esp + 0x18]
jge 0x517cba
cmp dx, 1
jne 0x517c86
mov ecx, edi
call fcn.004f0f30
mov esi, dword [esp + 0x1c]
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.004f1310
push esi
mov ecx, ebx
call fcn.004efe30
push edi
lea ecx, [ebx + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x517f62
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f0f30
add edi, 0x28
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.004f1310
push edi
mov ecx, ebx
call fcn.004efe30
push esi
lea ecx, [ebx + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x517f62
cmp dx, 1
jne 0x517cce
lea edx, [edi + 0x30]
push edx
call fcn.004f11e0
add edi, 0x24
jmp 0x517cd7
lea edx, [edi + 0xc]
push edx
call fcn.004f11e0
push edi
mov ecx, ebx
call fcn.004efe30
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [ebx + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x517f62
cmp eax, dword [esp + 0x18]
jge 0x517d37
cmp dx, 1
jne 0x517d1b
mov ecx, edi
call fcn.004f0f30
push edi
mov ecx, ebx
call fcn.004efe30
mov eax, 1
jmp 0x517f62
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f0f30
push esi
mov ecx, ebx
call fcn.004efe30
mov eax, 1
jmp 0x517f62
cmp dx, 1
jne 0x517d40
add edi, 0x24
push edi
mov ecx, ebx
call fcn.004efe30
mov eax, 1
jmp 0x517f62
lea ecx, [esp + 0x3c]
call fcn.004ee1e0
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x84], eax
je 0x517ef0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x24], ecx
lea ecx, [esp + 0x3c]
jge 0x517e40
cmp word [esp + 0x20], 1
jne 0x517da2
mov edx, dword [esp + 0x10]
add edx, 0x24
push edx
jmp 0x517da7
mov eax, dword [esp + 0x10]
push eax
call fcn.004efe30
lea ecx, [esp + 0x3c]
call fcn.004f0f30
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + 4]
lea edi, [ebp + 4]
jne 0x517dc8
mov edx, dword [ebp + 0x10]
cmp edx, dword [edi + 4]
je 0x517e13
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
call fcn.004fee40
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.004f1310
mov ecx, ebp
call fcn.004f10c0
fstp qword [esp + 0x24]
mov ecx, esi
call fcn.004f10c0
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x517e0c
push edi
mov ecx, ebp
call fcn.004f1310
lea eax, [esp + 0x2c]
push eax
jmp 0x517e14
push edi
lea ecx, [esp + 0x40]
call fcn.004f11e0
mov esi, dword [esp + 0x14]
push ebp
mov ecx, esi
call fcn.004efe30
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x24]
call fcn.004efe30
mov esi, 2
jmp 0x517f4f
cmp word [esp + 0x20], 1
jne 0x517e4f
mov edx, dword [esp + 0x10]
push edx
jmp 0x517e57
mov eax, dword [esp + 0x10]
add eax, 0x24
push eax
call fcn.004efe30
mov ecx, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
cmp ecx, dword [ebp + 4]
lea eax, [ebp + 4]
jne 0x517e72
mov edx, dword [edi + 4]
cmp edx, dword [eax + 4]
je 0x517ec6
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ebp
push ecx
call fcn.004fee40
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
call fcn.004f1310
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.004f11e0
mov ecx, ebp
call fcn.004f10c0
fstp qword [esp + 0x24]
mov ecx, esi
call fcn.004f10c0
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 5
jp 0x517ed0
push edi
mov ecx, ebp
call fcn.004f11e0
jmp 0x517ed0
push eax
lea ecx, [esp + 0x40]
call fcn.004f1310
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004efe30
push ebp
lea ecx, [esi + 0x24]
call fcn.004efe30
mov esi, 2
jmp 0x517f4f
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x24], edx
jge 0x517f2a
cmp word [esp + 0x20], 1
jne 0x517f0c
mov eax, dword [esp + 0x10]
add eax, 0x24
push eax
jmp 0x517f11
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call fcn.004efe30
lea ecx, [esp + 0x3c]
call fcn.004f0f30
lea edx, [esp + 0x3c]
push edx
jmp 0x517f41
cmp word [esp + 0x20], 1
jne 0x517f39
mov eax, dword [esp + 0x10]
push eax
jmp 0x517f41
mov ecx, dword [esp + 0x10]
add ecx, 0x24
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004efe30
mov esi, 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004eeaf0
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x60
ret