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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51b14d
sub esp, 0x70
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp edx, 0
jne 0x51b0bb
mov ecx, edi
mov eax, esi
cmp eax, 0
jne 0x51ad0c
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
add esp, 0x70
ret
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ecx
mov dword [esp], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 4], eax
mov ebx, 0x5f7050
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.00520380
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x68], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
jge 0x51ae15
mov ebx, dword [esp + 0x28]
cmp ebx, 0
je 0x51b0b4
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x40]
cmp ecx, 1
jne 0x51afd4
mov dword [esp], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 4], ecx
mov ebp, 0x5f704f
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
call fcn.00453f60
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51afd4
mov ebx, dword [esp + 0x28]
add ebx, 8
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
cmp ebx, ebp
jl 0x51ad8b
mov ebx, dword [esp + 0x50]
dec ebx
mov ebp, dword [esp + 0x50]
cmp ebx, ebp
jae 0x51afcd
mov ebp, dword [esp + 0x4c]
shl ebx, 3
add ebp, ebx
mov edx, dword [ebp]
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 4]
cmp eax, 1
jne 0x51af90
mov dword [esp], edx
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov ebp, 0x5f704f
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
call fcn.00453f60
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51af90
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x51af54
mov dword [esp + 0x5c], ebx
mov ebx, ecx
mov ebp, eax
imul ebp, ebp, 8
add ebx, ebp
mov ebp, 0x5f7044
mov dword [ebx], ebp
mov dword [ebx + 4], 0
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
mov ebx, 0x5f7050
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 1
call fcn.00520400
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 4], ecx
mov ebx, 0x5f7050
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.00520fd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
mov ebx, 0x5f7050
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], ecx
call fcn.004411a0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x88], ebx
add esp, 0x70
ret
mov dword [esp], 0x5c5720
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
inc ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ecx
jmp 0x51ae94
mov dword [esp + 0x30], eax
cmp eax, 2
jne 0x51aeab
mov dword [esp], edx
mov dword [esp + 4], eax
mov ebp, 0x5f708b
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
call fcn.00453f60
movzx ebx, byte [esp + 0x10]
cmp bl, 0
jne 0x51ae79
jmp 0x51aeab
call fcn.00429b10
ud2
mov dword [esp + 0x48], ecx
cmp ecx, 2
jne 0x51b02f
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ebp, 0x5f708b
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
call fcn.00453f60
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x51b02f
mov ebx, dword [esp + 0x5c]
cmp ebx, 0
jle 0x51b02a
mov eax, dword [esp + 0x5c]
dec eax
mov ebx, dword [esp + 0x60]
cmp eax, ebx
ja 0x51b023
mov dword [esp + 0x5c], eax
jmp 0x51adf1
call fcn.00429b80
ud2
jmp 0x51adf1
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x51b07b
mov dword [esp + 0x5c], ebx
mov ebx, ecx
mov ebp, eax
imul ebp, ebp, 8
add ebx, ebp
mov ebp, dword [esp + 0x40]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x3c]
cmp byte [0x6dbe18], 0
jne 0x51b06a
mov dword [ebx], ebp
jmp 0x51adf1
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00410660
jmp 0x51adf1
mov dword [esp], 0x5c5720
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.0043d700
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
inc ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ecx
jmp 0x51b046
mov dword [ebx], eax
jmp 0x51ad98
cmp edx, 0
jbe 0x51b146
movzx ebp, byte [ecx]
xchg ebp, eax
cmp al, 0x2f
xchg ebp, eax
je 0x51b13f
mov dword [esp], edi
mov dword [esp + 4], esi
mov ebx, 0x5f7050
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.0051fb40
mov eax, dword [esp + 0x10]
inc eax
mov ebx, dword [esp + 0x78]
cmp eax, ebx
ja 0x51b138
mov ecx, dword [esp + 0x74]
mov dword [esp], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x10], ebx
call fcn.004411a0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x51acf3
call fcn.00429b80
ud2
mov eax, edx
jmp 0x51acf3
call fcn.00429b10
ud2
call fcn.00452240
jmp fcn.0051aca0