Function at 0x51f320
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 0x51fbcc
sub esp, 0xa0
mov eax, dword [0x88fc54]
mov ecx, dword [0x88fc50]
test eax, eax
jle 0x51fbb5
mov edx, dword [esp + 0xa4]
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x51f372
mov esi, dword [esp + 0x5c]
add esi, 0x20
mov edi, ecx
mov ecx, esi
mov esi, ebp
mov ebp, edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], esi
lea edi, [esp + 0x80]
mov esi, ecx
call fcn.0044d650
lea edi, [esp + 0x60]
lea esi, [esp + 0x80]
call fcn.0044d650
cmp dword [esp + 0x60], edx
jne 0x51fbaa
mov ecx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
inc ebx
cmp ebx, eax
jl 0x51f363
test ecx, ecx
je 0x51fb89
cmp ecx, 2
je 0x51fb62
nop
cmp ecx, 0x14
jae 0x51fb5b
mov eax, dword [0x894ef0]
lea ebx, [0x894ef0]
cmp dword [ebx + 4], ecx
jbe 0x51fbc5
mov eax, dword [eax + ecx*4]
test eax, eax
setne al
test al, al
je 0x51fb3a
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
mov dword [esp], ecx
call fcn.004d49c0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
call edx
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc0]
test ebx, ebx
je 0x51fafb
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], edx
mov ebp, dword [ebx + 8]
cmp ebp, 0x2fd00e80
jne 0x51f72b
lea esi, [0x669d00]
cmp esi, ebx
jne 0x51fb30
mov edi, dword [esp + 0xc4]
jne 0x51f72b
mov ebx, dword [esp + 0x30]
cmp ebx, 3
jne 0x51f6fe
mov dword [esp + 0x44], edi
lea eax, [0x653120]
mov dword [esp], eax
call fcn.00409a20
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
nop
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
lea ecx, [0x628b40]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fa000
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x51f6e9
test ecx, ecx
jne 0x51f695
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
nop
mov edx, dword [ecx + 8]
test edx, edx
jne 0x51f67a
xor edx, edx
test edx, edx
jg 0x51f5a4
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x37
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f597
lea eax, [0x6955dc]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x6955dc]
call fcn.0044d090
jmp 0x51f57c
mov eax, dword [eax + 4]
nop
mov edx, dword [eax + 8]
test edx, edx
jne 0x51f65f
xor edx, edx
test edx, edx
jle 0x51f550
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.005015f0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x51f642
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f635
lea eax, [0x68ecb2]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x68ecb2]
call fcn.0044d090
jmp 0x51f61a
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
add esp, 0xa0
ret
movzx edx, byte [eax]
test dl, dl
je 0x51f670
mov edx, 0xffffffff
jmp 0x51f5b5
mov edx, 1
jmp 0x51f5b5
movzx edx, byte [ecx]
test dl, dl
je 0x51f68b
mov edx, 0xffffffff
jmp 0x51f54c
mov edx, 1
jmp 0x51f54c
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x29
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f6dc
lea eax, [0x691eb4]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x691eb4]
call fcn.0044d090
jmp 0x51f6c1
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.0051f210
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
cmp ebp, 0x6a2fd0b3
jne 0x51f9cc
lea esi, [0x627fc0]
cmp esi, ebx
jne 0x51fb26
mov edi, dword [esp + 0xc4]
jne 0x51f9cc
mov ebx, dword [esp + 0x30]
cmp ebx, 2
jne 0x51f99f
mov dword [esp + 0x48], edi
lea eax, [0x6530c0]
mov dword [esp], eax
call fcn.00409a20
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
nop
mov ecx, dword [esp + 0xb4]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 8], ecx
lea ecx, [0x628b00]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004fa000
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
test ecx, ecx
jne 0x51f98a
test edx, edx
jne 0x51f936
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
nop
mov edx, dword [ecx + 8]
test edx, edx
jne 0x51f91b
xor edx, edx
test edx, edx
jg 0x51f845
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x35
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f838
lea eax, [0x694d64]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x694d64]
call fcn.0044d090
jmp 0x51f81d
mov eax, dword [eax + 4]
nop
mov edx, dword [eax + 8]
test edx, edx
jne 0x51f900
xor edx, edx
test edx, edx
jle 0x51f7f1
mov edx, dword [esp + 0x48]
mov dword [esp], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.005177b0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x51f8e3
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1e
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f8d6
lea eax, [0x68dfec]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x68dfec]
call fcn.0044d090
jmp 0x51f8bb
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
add esp, 0xa0
ret
movzx edx, byte [eax]
test dl, dl
je 0x51f911
mov edx, 0xffffffff
jmp 0x51f856
mov edx, 1
jmp 0x51f856
movzx edx, byte [ecx]
test dl, dl
je 0x51f92c
mov edx, 0xffffffff
jmp 0x51f7ed
mov edx, 1
jmp 0x51f7ed
nop
lea eax, [0x64cca0]
mov dword [esp], eax
call fcn.00409a20
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x27
mov eax, dword [0x8a6100]
test eax, eax
jne 0x51f97d
lea eax, [0x6912db]
mov dword [edi], eax
lea eax, [0x6e5880]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
add esp, 0xa0
ret
lea eax, [0x6912db]
call fcn.0044d090
jmp 0x51f962
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.0051f210
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
cmp ebp, 0xcc456746
jne 0x51fafb
lea ebp, [0x645a20]
cmp ebp, ebx
jne 0x51fb1c
mov ebx, dword [esp + 0xc4]
jne 0x51fafb
mov esi, dword [esp + 0x30]
cmp esi, 1
jne 0x51face
nop
mov ebp, dword [esp + 0xa4]
add ebp, 0xfffffff3
cmp ebp, 2
ja 0x51fa74
nop
nop
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.005058d0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov dword [esp], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
call fcn.00504450
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0051f210
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov eax, dword [0x8948c8]
mov ecx, dword [0x8948cc]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
add esp, 0xa0
ret
mov ebx, 0
jmp 0x51f9ed
mov edi, 0
jmp 0x51f74c
mov edi, 0
jmp 0x51f4ab
mov eax, dword [0x8948cc]
mov ecx, dword [0x8948c8]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
xor eax, eax
jmp 0x51f3e7
mov dword [esp], edx
call fcn.00407360
mov eax, dword [esp + 4]
lea ecx, [0x6e6060]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov eax, dword [0x8948cc]
mov ecx, dword [0x8948c8]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
add esp, 0xa0
ret
mov ecx, ebp
mov ebp, dword [esp + 0x30]
jmp 0x51f3aa
mov edx, dword [esp + 0xa4]
xor ecx, ecx
xor ebp, ebp
jmp 0x51f3af
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.0051f320