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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x51df3d
sub esp, 0x98
mov eax, 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
lea edi, [esp + 0x78]
xor eax, eax
call fcn.0045cbca
mov ecx, dword [0x663a20]
mov edx, dword [0x663a24]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00408b50
mov ecx, dword [esp + 8]
lea edx, [0x5315e0]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x663a28]
mov ebx, dword [0x663a2c]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00408b50
mov ecx, dword [esp + 8]
lea edx, [0x5315e0]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
lea ecx, [0x530e60]
mov dword [esp + 0x88], ecx
lea ecx, [0x586900]
mov dword [esp + 0x8c], ecx
lea ecx, [0x55085d]
mov dword [esp], ecx
mov dword [esp + 4], 0xf
lea ecx, [esp + 0x78]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 3
call fcn.004b5ae0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ebx, [0x54e0e4]
mov dword [esp], ebx
mov dword [esp + 4], 3
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.004d3770
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test ecx, ecx
jne 0x51dedf
mov dword [esp + 0x54], ebp
mov dword [esp + 0x48], ebx
test byte [edx], al
lea eax, [edx + 0x10]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x23], 1
lea eax, [0x53eda0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
lea ecx, [0x535c60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 8], ecx
call fcn.00408d30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
lea edx, [0x534ca0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00408d30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
lea edx, [0x534dc0]
mov dword [esp], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
call fcn.00408d30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x5c]
mov dword [ebx], edx
mov dword [ebx + 8], ecx
mov ecx, dword [0x68ad40]
test ecx, ecx
jne 0x51d8c2
mov ecx, dword [esp + 0x30]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], eax
jmp 0x51d8da
lea edi, [ebx + 4]
mov ecx, eax
mov eax, dword [esp + 0x30]
call fcn.0045c980
lea edi, [ebx + 0xc]
mov eax, ecx
call fcn.0045c980
lea eax, [0x5877d8]
mov dword [esp], eax
lea ecx, [ebx + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ecx
lea edx, [0x58ac5c]
mov dword [esp + 8], edx
lea ebp, [0x68aba0]
mov dword [esp + 0xc], ebp
lea esi, [0x531720]
mov dword [esp + 0x10], esi
lea edi, [0x586904]
mov dword [esp + 0x14], edi
call fcn.00485bf0
nop
lea eax, [0x5877d8]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
lea edx, [0x58ac5c]
mov dword [esp + 8], edx
lea ebx, [0x68aba0]
mov dword [esp + 0xc], ebx
lea ebp, [0x531720]
mov dword [esp + 0x10], ebp
lea esi, [0x586908]
mov dword [esp + 0x14], esi
call fcn.00485bf0
nop
lea eax, [0x5877d8]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
lea eax, [0x58ac5c]
mov dword [esp + 8], eax
lea ecx, [0x68aba0]
mov dword [esp + 0xc], ecx
lea edx, [0x531720]
mov dword [esp + 0x10], edx
lea ebx, [0x586908]
mov dword [esp + 0x14], ebx
call fcn.00485bf0
lea eax, [0x5317a0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00446320
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x4c], edx
mov ebx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
movzx ecx, byte [ecx]
test eax, eax
jne 0x51de73
test cl, cl
je 0x51da5b
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [0x5315e0]
mov dword [esp + 0x60], eax
lea eax, [0x586b80]
mov dword [esp + 0x64], eax
mov eax, dword [0x663410]
lea ecx, [0x5879a4]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b5c50
mov dword [esp], 1
call fcn.0051df50
nop
lea eax, [0x52e880]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov byte [eax], 9
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov edx, dword [edx + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call edx
lea eax, [0x531720]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
lea ecx, [0x5877c4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
lea edx, [0x58ac5c]
mov dword [esp + 8], edx
lea edx, [0x68aba0]
mov dword [esp + 0xc], edx
lea edx, [0x52b240]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.00484880
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x51de07
test eax, eax
je 0x51dd9b
mov dword [esp + 0x28], eax
mov dword [esp], 0
mov dword [esp + 4], 0
lea eax, [0x54ee33]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 8
call fcn.004b06b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x51dd2f
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebp
lea ecx, [0x587a80]
mov dword [esp], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.00408cc0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
lea edx, [0x537b80]
mov dword [esp], edx
call fcn.0040b290
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x68ad40]
test ecx, ecx
jne 0x51dbad
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
jmp 0x51dbbd
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x3c]
call fcn.0045c980
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
lea edx, [0x5878a0]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004ad130
nop
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x51dc08
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.004ae3b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
test eax, eax
je 0x51dc98
mov eax, dword [ecx]
test byte [ecx], al
mov ecx, dword [eax + 0x134]
mov eax, dword [eax + 0x138]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004ae560
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x551cfb]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
mov eax, dword [ecx]
test byte [ecx], al
nop
nop
mov ecx, dword [eax + 0x134]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0x138]
mov dword [esp + 0x24], eax
lea edx, [0x52e880]
mov dword [esp], edx
call fcn.0040b290
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x18
lea ecx, [0x554436]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xf
lea ecx, [0x550c4a]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x551cfb]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x551cfb]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
mov ecx, dword [esp + 0x90]
mov dword [esp], ecx
call eax
add esp, 0x98
ret
lea eax, [0x5353c0]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x12
lea ecx, [0x551ce9]
mov dword [eax], ecx
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
lea ecx, [0x587864]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
add esp, 0x98
ret
call fcn.0045b540
jmp fcn.0051d6a0