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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x84]
cmp eax, dword [ecx + 8]
jbe 0x5d171c
sub esp, 0x104
mov eax, dword [esp + 0x108]
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x114]
mov dword [esp + 0xf8], edx
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
jmp 0x5d1208
mov eax, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp], edx
mov edx, dword [esp + 0xdc]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 8], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x1c], edx
call fcn.005d0c50
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xdc], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xd8], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xd4], ebx
mov ebp, dword [esp + 0xc8]
mov dword [esp], ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xd0]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x1c], ebp
call fcn.005d0c50
mov eax, dword [esp + 0x20]
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc8], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc4], ebx
mov ebp, dword [esp + 0xe0]
mov dword [esp], ebp
mov ebp, dword [esp + 0xdc]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xe8]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.004816c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0xd0]
mov dword [esp], ebp
mov ebp, dword [esp + 0xcc]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xd8]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.004816c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0xa0]
mov dword [esp], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.004816c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0xf0]
mov dword [esp], edx
mov edx, dword [esp + 0xec]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x48]
mov ebx, edx
and edx, 3
mov dword [esp + 0x60], edx
and ebx, 0xfffffffc
mov dword [esp + 0x78], ebx
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.004816c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
call fcn.004816c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x80], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
call fcn.005d0d40
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xf0], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xec], ebx
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.004816c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xf0]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xec]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.004816c0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x7c]
add eax, ecx
mov ecx, dword [esp + 0x80]
adc ecx, 0
add esi, eax
adc edi, ecx
mov eax, dword [esp + 0x108]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0xfc]
test ecx, ecx
je 0x5d16cf
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], edx
cmp ecx, 0x10
jge 0x5d138a
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x100]
lea edi, [esp + 0x30]
cmp eax, edi
je 0x5d127e
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00477ad0
mov ecx, dword [esp + 0xfc]
lea edi, [esp + 0x30]
mov byte [esp + ecx + 0x30], 1
mov dword [esp], edi
mov dword [esp + 4], 8
mov dword [esp + 8], 0x10
call fcn.004e5810
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.004816c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x74], ebx
lea ebp, [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 4], 8
mov dword [esp + 8], 8
call fcn.004e5810
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
call fcn.004816c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x60]
add ebp, eax
mov eax, dword [esp + 0x64]
adc eax, ecx
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
xor edi, edi
xor ecx, ecx
mov dword [esp + 0xf8], ecx
xor esi, esi
mov dword [esp + 0x100], esi
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
jmp 0x5d14c8
mov eax, dword [esp + 0x100]
mov dword [esp], eax
mov dword [esp + 4], 8
mov ecx, dword [esp + 0xf8]
mov dword [esp + 8], ecx
call fcn.004e5810
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.004816c0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0xf8]
lea ebx, [edx - 8]
mov ebp, dword [esp + 0x100]
lea esi, [ebp + 8]
add edx, 0xfffffff0
mov dword [esp + 0xf8], edx
neg edx
sar edx, 0x1f
and edx, 0x10
mov dword [esp + 0xf4], edx
mov edi, dword [esp + 0x18]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x74], edi
mov dword [esp], esi
mov dword [esp + 4], 8
mov dword [esp + 8], ebx
call fcn.004e5810
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
call fcn.004816c0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xfc]
add ecx, 0xfffffff0
mov esi, dword [esp + 0xf4]
mov edi, dword [esp + 0x100]
add esi, edi
mov edi, dword [esp + 0x60]
add ebp, edi
mov edi, dword [esp + 0x64]
adc eax, edi
add ebp, 1
adc eax, 0
mov edi, ecx
mov dword [esp + 0x100], esi
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0xfc], edi
mov dword [esp], esi
mov dword [esp + 4], ecx
mov edi, dword [esp + 0x58]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.005d0be0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xec], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xe8], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xe4], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x58]
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.005d0be0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xd8], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xd4], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov esi, dword [esp + 0x64]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x58]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0xc], edi
call fcn.005d0be0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xd0], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc8], edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc4], ebx
mov ebp, dword [esp + 0x70]
mov dword [esp], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc], esi
call fcn.005d0be0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xbc], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xb8], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xb4], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc], esi
call fcn.005d0be0
mov eax, dword [esp + 0x10]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xac], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa8], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xa4], ebx
mov ebp, dword [esp + 0x60]
mov dword [esp], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc], esi
call fcn.005d0be0
mov eax, dword [esp + 0xd0]
test eax, eax
setne cl
mov edx, dword [esp + 0xcc]
test edx, edx
setne bl
or ecx, ebx
test cl, cl
jne 0x5d1703
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
setne cl
test ebx, ebx
setne bl
or ecx, ebx
test cl, cl
je 0x5d0e52
jmp 0x5d16eb
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
add esp, 0x104
ret
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x734198]
mov dword [esp + 4], eax
call fcn.00470a40
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x734198]
mov dword [esp + 4], eax
call fcn.00470a40
nop
call fcn.00475ee0
jmp fcn.005d0da0