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

Disassembly:
push 0xffffffffffffffff
push 0x5deca8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
mov ax, word [esi + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x24]
and ax, 0xfff9
cmp dword [esp + 0x84], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
movzx eax, ax
jne 0x51843b
cmp dword [esp + 0x80], 0
je 0x5183df
cmp edx, dword [esp + 0x1c]
jge 0x5183a3
cmp ax, 1
jne 0x51836f
mov ecx, edi
call fcn.004f0f30
mov esi, dword [esp + 0x14]
lea ecx, [edi + 4]
push ecx
mov ecx, esi
call fcn.004f1310
push esi
mov ecx, ebp
call fcn.004efe30
push edi
lea ecx, [ebp + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x518641
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f0f30
add edi, 0x28
push edi
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.004f1310
push edi
mov ecx, ebp
call fcn.004efe30
push esi
lea ecx, [ebp + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x518641
cmp ax, 1
jne 0x5183b7
lea edx, [edi + 0x30]
push edx
call fcn.004f11e0
add edi, 0x24
jmp 0x5183c0
lea edx, [edi + 0xc]
push edx
call fcn.004f11e0
push edi
mov ecx, ebp
call fcn.004efe30
mov eax, dword [esp + 0x14]
push eax
lea ecx, [ebp + 0x24]
call fcn.004efe30
mov eax, 2
jmp 0x518641
cmp edx, dword [esp + 0x1c]
jge 0x518420
cmp ax, 1
jne 0x518404
mov ecx, edi
call fcn.004f0f30
push edi
mov ecx, ebp
call fcn.004efe30
mov eax, 1
jmp 0x518641
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.004f0f30
push esi
mov ecx, ebp
call fcn.004efe30
mov eax, 1
jmp 0x518641
cmp ax, 1
jne 0x518429
add edi, 0x24
push edi
mov ecx, ebp
call fcn.004efe30
mov eax, 1
jmp 0x518641
lea ecx, [esp + 0x38]
call fcn.004ee1e0
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
cmp dword [esp + 0x80], ebp
je 0x5185f1
cmp dword [esp + 0x20], ecx
jge 0x518548
mov edx, dword [esp + 0x18]
add edx, 0x24
push edx
lea ecx, [esp + 0x3c]
call fcn.004efe30
lea ecx, [esp + 0x38]
call fcn.004f0f30
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
lea edi, [ebx + 4]
jne 0x5184a2
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [edi + 4]
je 0x51851b
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.004fee40
add esp, 0xc
cmp eax, ebp
je 0x5184d3
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004f1310
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
call fcn.004f11e0
mov ecx, ebx
call fcn.004f10c0
fstp qword [esp + 0x20]
mov ecx, esi
call fcn.004f10c0
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x518525
push edi
mov ecx, ebx
call fcn.004f1310
mov esi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.004efe30
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x24]
call fcn.004efe30
mov esi, 2
jmp 0x51862e
push edi
lea ecx, [esp + 0x3c]
call fcn.004f11e0
mov esi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.004efe30
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x24]
call fcn.004efe30
mov esi, 2
jmp 0x51862e
mov ecx, dword [esp + 0x18]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x3c]
call fcn.004efe30
mov edx, dword [ebx + 0xc]
lea edi, [ebx + 0xc]
cmp edx, dword [ebx + 4]
lea eax, [ebx + 4]
jne 0x51856f
mov ecx, dword [edi + 4]
cmp ecx, dword [eax + 4]
je 0x5185c7
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004fee40
add esp, 0xc
cmp eax, ebp
je 0x5185a0
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.004f11e0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x3c]
call fcn.004f1310
mov ecx, ebx
call fcn.004f10c0
fstp qword [esp + 0x20]
mov ecx, esi
call fcn.004f10c0
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x5185d1
push edi
mov ecx, ebx
call fcn.004f11e0
jmp 0x5185d1
push eax
lea ecx, [esp + 0x3c]
call fcn.004f1310
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.004efe30
push ebx
lea ecx, [esi + 0x24]
call fcn.004efe30
mov esi, 2
jmp 0x51862e
cmp dword [esp + 0x20], ecx
jge 0x518618
mov edx, dword [esp + 0x18]
add edx, 0x24
push edx
lea ecx, [esp + 0x3c]
call fcn.004efe30
lea ecx, [esp + 0x38]
call fcn.004f0f30
lea eax, [esp + 0x38]
push eax
jmp 0x518620
mov ecx, dword [esp + 0x18]
add ecx, 0x24
push ecx
mov ecx, dword [esp + 0x14]
call fcn.004efe30
mov esi, 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 0xffffffff
call fcn.004eeaf0
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x5c
ret