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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51b21c
sub esp, 0x80
mov ecx, dword [esp + 0x84]
movzx edx, byte [ecx + 5]
test dl, dl
je 0x51b157
lea edi, [esp + 0x6c]
xor eax, eax
call fcn.0044c95b
lea edi, [esp + 0x6c]
call fcn.0044c95b
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jge 0x51b13a
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.004ec810
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
test ecx, ecx
jne 0x51b0b9
mov ecx, ebx
and ebx, 7
mov edx, eax
shl eax, 0x1d
mov ebp, ecx
shr ecx, 3
or eax, ecx
cmp ebx, 4
sete cl
and ecx, 1
test cl, cl
je 0x51abe7
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.005184d0
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov ecx, dword [0xc54f00]
mov edx, dword [0xc54efc]
mov ebx, dword [0xc54ef8]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.00518090
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
je 0x51ab34
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x80
ret
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x80a660]
mov dword [esp], ecx
mov dword [esp + 4], eax
shr edx, 3
mov dword [esp + 8], edx
call fcn.004074a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x921950]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [esp + 0x48]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b03f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x51b0a4
mov eax, dword [esp + 0x28]
cmp eax, 3
jne 0x51b066
mov ecx, dword [esp + 0x84]
movzx edx, byte [ecx + 5]
test dl, dl
je 0x51ac92
cmp eax, 3
sete dl
and edx, 1
test dl, dl
je 0x51acaf
mov dword [esp], ecx
mov byte [esp + 4], 0x20
call fcn.00518420
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51b051
mov eax, dword [esp + 0x28]
cmp eax, 1
setbe cl
and ecx, 1
test cl, cl
je 0x51ad71
mov eax, dword [esp + 0x2c]
test eax, 7
sete al
and eax, 1
test al, al
je 0x51ad4c
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.004ec810
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.0051b230
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x51ad37
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.00518420
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x51ab34
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x80
ret
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
lea eax, [esp + 0x6c]
mov dword [esp], eax
call fcn.004ecd10
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.0051b230
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x51acfa
cmp eax, 2
sete cl
and ecx, 1
test cl, cl
jne 0x51af1f
cmp eax, 3
sete cl
and ecx, 1
test cl, cl
jne 0x51aef2
cmp eax, 5
sete cl
and ecx, 1
test cl, cl
je 0x51ae68
mov eax, dword [esp + 0x78]
lea ecx, [eax + 4]
test ecx, ecx
jge 0x51adeb
mov eax, dword [0xc5c6a0]
mov ecx, dword [0xc5c6a4]
xor edx, edx
xor ebx, ebx
mov ebp, dword [esp + 0x84]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0051b230
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x51acfa
mov edx, dword [esp + 0x70]
cmp ecx, edx
jg 0x51adaf
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
cmp eax, edx
jae 0x51b215
movzx ebx, byte [ecx + eax]
lea ebp, [eax + 1]
cmp ebp, edx
jae 0x51b20e
movzx ebp, byte [eax + ecx + 1]
mov esi, ebp
shl ebp, 8
or ebp, ebx
lea ebx, [eax + 2]
cmp ebx, edx
jae 0x51b207
shr esi, 0x18
movzx ebx, byte [eax + ecx + 2]
mov edi, ebx
shr ebx, 0x10
or ebx, esi
shl edi, 0x10
or edi, ebp
lea ebp, [eax + 3]
cmp ebp, edx
jae 0x51b200
movzx edx, byte [eax + ecx + 3]
mov ebp, edx
shr edx, 8
or ebx, edx
shl ebp, 0x18
or ebp, edi
mov edx, ebp
xor eax, eax
xor ecx, ecx
jmp 0x51adbf
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea ecx, [0x80a660]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call fcn.004074a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea eax, [0x921950]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [0x8a4e18]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x1a
lea ebx, [esp + 0x30]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b0140
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
jmp 0x51acfa
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov byte [esp + 4], 0x7b
call fcn.00518420
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x84]
mov ebx, dword [edx]
inc ebx
mov dword [edx], ebx
jmp 0x51acfa
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0
call fcn.004ed060
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test edx, edx
je 0x51afbf
je 0x51afbb
mov eax, dword [edx + 4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea eax, [0x921950]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [0x89a110]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 8
lea ebx, [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b0140
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x51acfa
mov eax, edx
jmp 0x51af4d
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [0x7e9560]
mov dword [esp], eax
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.004075a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea eax, [0x921950]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [0x896a1d]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 2
lea ebx, [esp + 0x40]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b0140
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x51afb0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov byte [esp + 4], 0x3a
call fcn.00518420
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x51b08f
mov eax, dword [esp + 0x28]
jmp 0x51ac76
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x80
ret
je 0x51b136
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
lea eax, [0x921950]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
lea eax, [0x89ab89]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 9
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b0140
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x80
ret
mov eax, ecx
jmp 0x51b0be
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x80
ret
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea eax, [0x809b20]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.00407440
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea eax, [0x921950]
mov dword [esp], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
lea edx, [0x8a2f11]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x17
lea edx, [esp + 0x58]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004b0140
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x51b1eb
mov ecx, dword [esp + 0x84]
jmp 0x51aaff
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
add esp, 0x80
ret
call fcn.00426770
ud2
call fcn.00426770
ud2
call fcn.00426770
ud2
call fcn.00426770
ud2
call fcn.0044b100
jmp fcn.0051aad0