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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51bb68
sub esp, 0x5c
lea eax, [0x5fc0a0]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
lea ecx, [0x5c9240]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004fb050
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x51bac6
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
cmp ecx, 1
jne 0x51ba48
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x51ba22
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.005205c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x51b9d0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x5f0200]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004dd920
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x1c]
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004dd6c0
mov eax, dword [esp + 8]
test eax, eax
jge 0x51b97e
lea eax, [0x609980]
mov dword [esp], eax
call fcn.00409a30
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov edx, dword [0x7db370]
test edx, edx
jne 0x51b959
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x48]
mov dword [eax + 0x10], ebx
mov dword [esp + 0x44], eax
mov ebx, dword [esp + 0x38]
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 4]
lea esi, [ebp - 1]
test esi, esi
jl 0x51b952
mov ebx, dword [ebx + ebp*4 - 4]
cmp ebx, 0x10000
jb 0x51b94b
shr ebx, 0x10
mov ebp, 0x10
cmp ebx, 0x100
jb 0x51b789
shr ebx, 8
add ebp, 8
cmp ebx, 0x100
jae 0x51bb61
shl esi, 5
lea edi, [0x79eb00]
movzx ebx, byte [edi + ebx]
add ebx, ebp
add ebx, esi
lea eax, [0x5dfee0]
mov dword [esp], eax
lea eax, [ebx + 7]
sar eax, 0x1f
shr eax, 0x1d
lea eax, [eax + ebx + 7]
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00437b80
mov eax, dword [esp + 0x50]
lea edi, [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x40], ebx
jmp 0x51b7f1
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 4]
cmp esi, edx
jle 0x51b88d
movzx ecx, byte [ebx]
test cl, cl
jne 0x51b83b
lea ecx, [esi - 1]
mov dword [eax + 8], ecx
lea ecx, [ebp - 1]
mov dword [eax + 0xc], ecx
mov ebp, dword [0x7db370]
neg ecx
sar ecx, 0x1f
and ecx, 1
add ecx, ebx
test ebp, ebp
jne 0x51b82e
mov dword [eax + 4], ecx
jmp 0x51b7e9
mov ebx, eax
mov eax, ecx
call fcn.0044b680
mov eax, ebx
jmp 0x51b7e9
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov eax, dword [0x7db370]
test eax, eax
jne 0x51b880
lea eax, [0x625e10]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x5c
ret
lea eax, [0x625e10]
call fcn.0044b680
jmp 0x51b866
mov eax, edx
sub edx, esi
cmp edx, eax
ja 0x51bb5a
mov dword [esp + 0x34], eax
mov ebp, ecx
sub ecx, edx
neg ecx
sar ecx, 0x1f
and ecx, edx
mov edi, dword [esp + 0x40]
add ecx, edi
sub eax, edx
cmp eax, esi
jle 0x51b944
cmp ecx, ebx
je 0x51b8cc
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.0044be80
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call eax
mov eax, dword [0x7db370]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x51b928
mov eax, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov ebx, dword [esp + 0x44]
lea edi, [ebx + 8]
mov eax, ecx
call fcn.0044b680
lea edi, [ebx + 0xc]
mov eax, edx
call fcn.0044b680
mov eax, ebx
jmp 0x51b910
mov esi, eax
jmp 0x51b8b8
xor ebp, ebp
jmp 0x51b77b
xor ebx, ebx
jmp 0x51b7a6
lea edi, [eax + 4]
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.0044b680
lea edi, [edx + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x48]
call fcn.0044b680
mov eax, edx
mov edx, ebx
jmp 0x51b74a
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x2e
mov eax, dword [0x7db370]
test eax, eax
jne 0x51b9c3
lea eax, [0x629e46]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x5c
ret
lea eax, [0x629e46]
call fcn.0044b680
jmp 0x51b9a9
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1c
mov eax, dword [0x7db370]
test eax, eax
jne 0x51ba15
lea eax, [0x6245a1]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x5c
ret
lea eax, [0x6245a1]
call fcn.0044b680
jmp 0x51b9fb
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.005205c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
jmp 0x51b694
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [eax]
mov dword [esp + 4], eax
lea eax, [0x5df520]
mov dword [esp], eax
call fcn.004071c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x6280fc]
mov dword [esp], eax
mov dword [esp + 4], 0x27
lea eax, [esp + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00498df0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x5c
ret
mov ecx, dword [ecx + 0x10]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x627c6c]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x26
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0043ade0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
lea edx, [0x5ea220]
mov dword [esp], edx
call fcn.00409a30
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x28]
mov dword [edi + 4], eax
mov eax, dword [0x7db370]
test eax, eax
jne 0x51bb4f
mov eax, dword [esp + 0x3c]
mov dword [edi], eax
mov dword [esp + 0x70], 0
lea eax, [0x65f350]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x5c
ret
mov eax, dword [esp + 0x3c]
call fcn.0044b680
jmp 0x51bb35
call fcn.004259a0
ud2
call fcn.004258a0
ud2
call fcn.00449f20
jmp fcn.0051b5f0