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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x756cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov dword [esp + 0x54], vtable.wbs::StringBase_char_.0
mov ecx, dword [ebx + 0xcc]
mov eax, 0x92492493
sub ecx, dword [ebx + 0xc8]
xor esi, esi
imul ecx
mov dword [esp + 0x80], 0
add edx, ecx
mov dword [esp + 0x20], esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5212f3
xor ecx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
mov eax, dword [ebx + 0xc8]
cmp dword [eax + ecx + 0x14], 0
je 0x5212bc
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov dword [esp + 0x68], 0
cmovae eax, dword [esp + 0x58]
push 0x5b
mov byte [eax], 0
mov esi, dword [ebx + 0xc8]
add esi, ecx
lea ecx, [esp + 0x58]
call fcn.00494b60
mov edi, eax
test esi, esi
je 0x520f08
add esi, 4
jmp 0x520f0a
xor esi, esi
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 4]
call fcn.004094b0
push 0x5d
mov ecx, edi
call fcn.00494b60
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x58]
push 0xffffffffffffffff
push 0
add esi, 4
push eax
mov ecx, esi
call fcn.004094b0
call fcn.004f6a10
test eax, eax
je 0x520f45
add eax, 4
jmp 0x520f47
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004094b0
mov eax, dword [ebx + 0xc8]
lea ecx, [ebx + 0xd4]
add eax, dword [esp + 0x18]
xorps xmm0, xmm0
push eax
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
call fcn.0051c5c0
push eax
lea ecx, [esp + 0x2c]
call fcn.0043e7d0
mov eax, dword [ebx + 0xc8]
lea ecx, [ebx + 0xc0]
add eax, dword [esp + 0x18]
xorps xmm0, xmm0
push eax
mov byte [esp + 0x84], 1
movq qword [esp + 0x50], xmm0
call fcn.0051c530
lea ecx, [esp + 0x17]
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.0051c020
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov byte [esp + 0x80], 2
cmp edi, ebx
je 0x521227
lea ebx, [edi + 0x14]
mov dword [esp + 0x1c], ebx
lea esp, [esp]
cmp dword [ebx], 0
je 0x52120b
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x4c]
cmovae eax, dword [esp + 0x58]
mov byte [eax], 0
lea eax, [ebx - 0x14]
push eax
call fcn.00521b30
mov esi, eax
cmp esi, dword [esp + 0x4c]
je 0x521176
mov eax, dword [ebx]
mov byte [esp + 0x44], 0x20
test eax, eax
je 0x521084
cmp eax, 0xffffffff
jbe 0x521030
or ecx, 0xffffffff
jmp 0x521033
lea ecx, [eax - 1]
cmp dword [ebx + 4], 0x10
jb 0x521041
mov eax, dword [ebx - 0x10]
add ebx, 0xfffffff0
jmp 0x521046
add ebx, 0xfffffff0
mov eax, ebx
lea edi, [eax + ecx]
movsx eax, byte [edi]
push 1
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006f75b0
add esp, 0xc
test eax, eax
je 0x521084
mov ecx, ebx
call fcn.00409940
cmp edi, eax
je 0x521084
movsx eax, byte [edi - 1]
dec edi
push 1
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006f75b0
add esp, 0xc
test eax, eax
jne 0x521060
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x14]
mov byte [esp + 0x48], 0x20
test eax, eax
je 0x521103
cmp eax, 0xffffffff
jbe 0x52109d
or ecx, 0xffffffff
jmp 0x5210a0
lea ecx, [eax - 1]
cmp dword [ebx + 0x14], 0x10
jb 0x5210aa
mov eax, dword [ebx]
jmp 0x5210ac
mov eax, ebx
lea edi, [eax + ecx]
movsx eax, byte [edi]
push 1
push eax
lea eax, [esp + 0x50]
push eax
call fcn.006f75b0
add esp, 0xc
test eax, eax
je 0x5210ea
mov ecx, ebx
call fcn.00409940
cmp edi, eax
je 0x521103
movsx eax, byte [edi - 1]
dec edi
push 1
push eax
lea eax, [esp + 0x50]
push eax
call fcn.006f75b0
add esp, 0xc
test eax, eax
jne 0x5210c6
cmp dword [ebx + 0x14], 0x10
jb 0x5210f4
mov eax, dword [ebx]
jmp 0x5210f6
mov eax, ebx
sub edi, eax
cmp edi, 0xffffffff
je 0x521103
inc edi
lea eax, [esi + 0x10]
jmp 0x521109
mov edi, dword [esi + 0x24]
lea eax, [esi + 0x10]
xor ecx, ecx
mov edx, edi
test eax, eax
cmovne ecx, ebx
cmp dword [ecx + 0x10], edi
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0x10
mov dword [esp + 0x24], edx
jb 0x521125
mov ecx, dword [ecx]
mov ebx, dword [esp + 0x1c]
cmp dword [ebx], edi
cmovb edi, dword [ebx]
cmp dword [ebx + 4], 0x10
jb 0x521139
mov eax, dword [ebx - 0x10]
jmp 0x52113c
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], eax
cmp edi, edx
mov eax, edx
cmovb eax, edi
push eax
push ecx
push dword [esp + 0x24]
call fcn.00404db0
add esp, 0xc
test eax, eax
jne 0x52116f
mov ecx, dword [esp + 0x24]
cmp edi, ecx
jae 0x521166
or eax, 0xffffffff
jmp 0x52116d
xor eax, eax
cmp edi, ecx
setne al
test eax, eax
sets al
test al, al
je 0x5211ad
lea eax, [ebx - 0x14]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x4c]
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x28]
push eax
push 0x852e75
call fcn.00484e90
push eax
add eax, 0x10
lea ecx, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x48]
push eax
call fcn.0051b510
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
lea eax, [ebx - 0x10]
push eax
lea ecx, [esp + 0x64]
call fcn.004094b0
add esi, 0x2c
je 0x5211c8
lea eax, [esi + 4]
jmp 0x5211ca
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x64]
call fcn.004094b0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x58]
push 0xffffffffffffffff
push 0
add esi, 4
push eax
mov ecx, esi
call fcn.004094b0
call fcn.004f6a10
test eax, eax
je 0x5211fd
add eax, 4
jmp 0x5211ff
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004094b0
add ebx, 0x1c
mov dword [esp + 0x1c], ebx
lea eax, [ebx - 0x14]
cmp eax, dword [esp + 0x2c]
jne 0x520fe0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
call fcn.004f6a10
test eax, eax
je 0x521235
add eax, 4
jmp 0x521237
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004094b0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x84], 1
push dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.00521cd0
push dword [esp + 0x4c]
call fcn.006f75a9
add esp, 4
mov byte [esp + 0x80], 0
test edi, edi
je 0x5212b0
mov esi, edi
cmp edi, ebx
je 0x52128f
mov edi, edi
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, ebx
jne 0x521280
push edi
call fcn.006f75a9
add esp, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
add ecx, 0x1c
mov eax, 0x92492493
mov dword [esp + 0x18], ecx
inc esi
mov ecx, dword [ebx + 0xcc]
sub ecx, dword [ebx + 0xc8]
imul ecx
mov dword [esp + 0x20], esi
add edx, ecx
mov ecx, dword [esp + 0x18]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x520ec0
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x54], vtable.wbs::StringBase_char_.0
jb 0x52130e
push dword [esp + 0x58]
call fcn.006f75a9
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.006f7ca4
mov esp, ebp
pop ebp
ret 4