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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x51899c
sub esp, 0xa0
mov byte [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
lea eax, [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1f10
mov byte [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1f10
lea eax, [0x641a20]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.004c1950
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x51831c
xor ecx, ecx
jmp 0x51832f
movzx ecx, byte [eax]
test cl, cl
je 0x51832a
mov ecx, 0xffffffff
jmp 0x51832f
mov ecx, 1
mov dword [esp + 0x5c], eax
cmp ecx, 0xffffffff
jne 0x518351
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.004c1710
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004c1b90
nop
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
je 0x5184b8
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 4]
mov ebp, dword [ecx + 8]
mov esi, dword [ecx + 4]
cmp edx, ebp
jl 0x5183d1
mov edi, ebp
jmp 0x518453
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], esi
cmp ebp, 1
jne 0x51841c
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.004483e0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov ebp, 1
mov edx, 1
jmp 0x518453
lea eax, [0x633e80]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.004483e0
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
mov ebp, edi
mov edx, dword [esp + 0x28]
cmp ebp, edi
jg 0x518459
mov edi, ebp
cmp ebx, esi
je 0x518490
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edx
mov dword [esp], ebx
mov dword [esp + 4], esi
shl edi, 2
mov dword [esp + 8], edi
call fcn.0045fd30
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov edx, dword [0x84e4b0]
test edx, edx
jne 0x5184a5
mov dword [eax + 4], ebx
jmp 0x5184b3
lea edi, [eax + 4]
mov edx, eax
mov eax, ebx
call fcn.0045f3a0
mov eax, edx
movzx edx, byte [ecx]
mov byte [eax], dl
nop
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
call fcn.004c8410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x51850b
mov dword [ebx + 4], eax
jmp 0x518513
lea edi, [ebx + 4]
call fcn.0045f3a0
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call fcn.004c1710
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
lea ecx, [0x641a20]
mov dword [esp], ecx
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40], eax
mov byte [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 3
call fcn.004c8410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x54]
movzx ecx, byte [eax]
mov byte [esp + 0x60], cl
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
lea ebx, [esp + 0x60]
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004c1f10
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], eax
lea ecx, [esp + 0x60]
mov dword [esp + 8], ecx
call fcn.004c1950
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x51863d
xor ecx, ecx
jmp 0x518650
movzx ecx, byte [eax]
test cl, cl
je 0x51864b
mov ecx, 0xffffffff
jmp 0x518650
mov ecx, 1
cmp ecx, 0xffffffff
jne 0x518672
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1f10
lea eax, [0x641a20]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
call fcn.004c1710
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.004c1950
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5186fa
xor ecx, ecx
jmp 0x51870d
movzx ecx, byte [eax]
test cl, cl
je 0x518708
mov ecx, 0xffffffff
jmp 0x51870d
mov ecx, 1
cmp ecx, 0xffffffff
jne 0x51872f
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.004c1950
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x518752
xor ecx, ecx
jmp 0x518765
movzx ecx, byte [eax]
test cl, cl
je 0x518760
mov ecx, 0xffffffff
jmp 0x518765
mov ecx, 1
cmp ecx, 0xffffffff
jne 0x518787
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1f10
nop
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 2
call fcn.004c8410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x54]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5187f7
mov dword [ebx + 4], eax
jmp 0x5187ff
lea edi, [ebx + 4]
call fcn.0045f3a0
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
call fcn.004c1950
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x518822
xor ecx, ecx
jmp 0x518835
movzx ecx, byte [eax]
test cl, cl
je 0x518830
mov ecx, 0xffffffff
jmp 0x518835
mov ecx, 1
cmp ecx, 0xffffffff
jne 0x518857
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004c1b90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004c1b90
nop
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 3
call fcn.004c8410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x4c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov ecx, dword [0x84e4b0]
test ecx, ecx
jne 0x5188de
mov dword [ebx + 4], eax
jmp 0x5188e6
lea edi, [ebx + 4]
call fcn.0045f3a0
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004c1f10
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], ecx
call fcn.004c1950
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x518926
xor ecx, ecx
jmp 0x518939
movzx ecx, byte [eax]
test cl, cl
je 0x518934
mov ecx, 0xffffffff
jmp 0x518939
mov ecx, 1
cmp ecx, 0xffffffff
jne 0x51895b
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004c1710
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xa4]
mov ecx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004c1f10
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xbc], eax
add esp, 0xa0
ret
call fcn.0045df90
jmp fcn.005181f0