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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
movlpd qword [esp + 0x64], xmm0
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
test esi, esi
je 0x526281
xor ecx, ecx
cmp dword [esi], 0x40
cmovge esi, ecx
mov dword [esp + 0x18], esi
mov al, byte [eax + 0x40]
mov ecx, dword [ebp + 0x14]
and al, 0x20
mov byte [esp + 0x47], al
mov eax, ecx
and eax, 0xfeff
mov dword [esp + 0x60], esi
cmp byte [esp + 0x47], 0
movzx edx, ax
movzx eax, cx
cmove edx, eax
movzx eax, dx
mov edx, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [edx]
cmp ecx, 0x40
jle 0x5262e4
push 0x40
push str.at_most__d_tables_in_a_join
push edi
call fcn.004bab30
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
test al, 0x20
mov eax, 1
push 0
cmovne ecx, eax
mov dword [esp + 0x38], ecx
lea edi, [ecx + ecx*4]
mov ecx, dword [esp + 0x30]
shl edi, 4
lea eax, [edi + 0x2f7]
and eax, 0xfffffff8
mov dword [esp + 0x40], eax
add eax, 0x48
push eax
call fcn.004b8080
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp byte [ecx + 0x45], 0
je 0x526342
mov edx, eax
call fcn.004b7da0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], esi
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov byte [eax + 0x2a], cl
mov ecx, dword [esp + 0x28]
call fcn.004d62a0
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x30]
mov word [ecx + 0x28], ax
mov eax, dword [ebp + 0x18]
mov word [ecx + 0x10], ax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x88]
mov dword [ecx + 0x24], eax
lea eax, [edi + 0x48]
movups xmmword [ecx + 0x2b], xmm0
push eax
movups xmmword [ecx + 0x3b], xmm0
mov dword [ecx + 0x4b], 0
mov byte [ecx + 0x4f], 0
add ecx, 0x2f0
push 0
push ecx
mov dword [esp + 0x58], ecx
call fcn.005d05b0
mov edi, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add ecx, edi
mov dword [esp + 0x64], ecx
lea eax, [edi + 0x50]
mov dword [esp + 0x58], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], eax
lea eax, [ecx + 0x38]
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
mov dword [ecx + 0x24], 0
lea ecx, [edi + 0x50]
mov dword [edi + 0x1e8], 0
lea eax, [ecx + 0x18]
push 0x1c
mov dword [ecx], edi
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.00520a10
mov eax, dword [esp + 0x44]
xor edi, edi
add esp, 4
cmp dword [eax + 0xc], edi
jle 0x5264f2
xor esi, esi
cmp dword [esp + 0x34], 0
je 0x5264b5
mov eax, dword [eax + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
mov edx, dword [esi + eax]
mov byte [esp + 0x84], 2
mov dword [esp + 0x74], 0x4ec130
mov dword [esp + 0x78], 0x4ec220
mov dword [esp + 0x88], 0
test edx, edx
je 0x5264b5
lea ecx, [esp + 0x70]
call fcn.004e79a0
cmp byte [esp + 0x84], 0
je 0x5264dd
mov eax, dword [esp + 0x14]
push 0x10
push dword [eax + 0x20]
mov eax, dword [eax + 0x64]
push dword [eax + esi]
push dword [esp + 0x28]
call fcn.004f0a30
mov eax, dword [esp + 0x50]
add esp, 0x10
mov eax, dword [eax + 0x14]
or word [eax + esi + 0xa], 4
mov eax, dword [esp + 0x40]
inc edi
add esi, 0x30
cmp edi, dword [eax + 0xc]
jl 0x526452
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x34], 0
jne 0x52651a
test esi, esi
je 0x526506
mov ecx, dword [esp + 0x14]
mov al, byte [esi]
mov byte [ecx + 0x2b], al
test dword [esp + 0x30], 0x100
mov eax, dword [esp + 0x14]
je 0x52651e
mov byte [eax + 0x2f], 1
jmp 0x52651e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
xor edi, edi
cmp dword [ecx], edi
jle 0x526567
lea esi, [ecx + 8]
nop dword [eax + eax]
mov ecx, dword [eax + 0x1e8]
lea edx, [eax + 0x1e8]
mov eax, dword [esi + 0x30]
push dword [esp + 0x40]
mov dword [edx + ecx*4 + 4], eax
inc dword [edx]
mov edx, esi
mov ecx, dword [esp + 0x20]
call fcn.00520d00
mov eax, dword [esp + 0x28]
inc edi
add esp, 4
add esi, 0x50
cmp edi, dword [eax]
mov eax, dword [esp + 0x14]
jl 0x526530
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov esi, dword [ecx + 0xc]
sub esi, 1
js 0x52658d
mov edx, ecx
mov ecx, edi
push esi
call fcn.0051fd50
mov ecx, dword [esp + 0x44]
add esp, 4
sub esi, 1
jns 0x526577
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x45], 0
jne 0x526636
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
and eax, 0x100
mov dword [esp + 0x3c], eax
je 0x5265e1
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, edi
call fcn.005213c0
mov edi, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x5265cc
mov byte [edi + 0x2f], 1
jmp 0x5265e5
cmp dword [esp + 0x18], 0
jne 0x5265e5
mov eax, 0x80
mov dword [edi + 8], esi
or word [edi + 0x28], ax
jmp 0x5265e5
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x34], 1
jne 0x5265f9
lea ecx, [esp + 0x58]
call fcn.00526050
test eax, eax
jne 0x526668
lea ecx, [esp + 0x58]
call fcn.00524d50
test eax, eax
jne 0x526636
xor edx, edx
mov ecx, edi
call fcn.005257b0
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x45], 0
jne 0x526636
cmp dword [edi + 8], 0
je 0x526672
movzx edx, word [edi + 0x48]
mov ecx, edi
inc dx
call fcn.005257b0
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x45], 0
je 0x52666c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x24]
mov dword [edx + 0x88], eax
mov edx, ecx
mov ecx, dword [esp + 0x2c]
call fcn.00522690
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
cmp dword [edi + 8], 0
jne 0x526689
test dword [ecx + 0x18], 0x20000
je 0x526689
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x24], 0
jne 0x526636
cmp byte [ecx + 0x45], 0
jne 0x526636
cmp byte [edi + 0x2a], 2
jb 0x5267b3
test esi, esi
je 0x5267b3
mov eax, 0x400
test word [ecx + 0x40], ax
jne 0x5267b3
mov edx, esi
lea ecx, [edi + 0x1e8]
call fcn.00520c60
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
test edx, edx
je 0x5266f2
lea ecx, [edi + 0x1e8]
call fcn.00520c60
mov esi, dword [esp + 0x18]
or esi, eax
or dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
jmp 0x5266f6
mov esi, dword [esp + 0x18]
mov al, byte [edi + 0x2a]
cmp al, 2
jb 0x5267b3
mov edx, dword [edi + 4]
mov dword [esp + 0x38], edx
movzx eax, al
lea eax, [eax + eax*4]
add eax, eax
mov ecx, dword [edi + eax*8 + 0x2e0]
movzx eax, byte [ecx + 0x10]
lea eax, [eax + eax*4]
add eax, eax
test byte [edx + eax*8 + 0x2c], 8
je 0x5267b3
cmp word [esp + 0x3c], 0
jne 0x52673c
test dword [ecx + 0x24], 0x1000
je 0x5267b3
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx + 8]
mov ecx, edi
mov dword [esp + 0x48], eax
and ecx, esi
and eax, dword [esp + 0x20]
or ecx, eax
jne 0x5267af
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
lea esi, [ecx + ecx*2]
shl esi, 4
add esi, eax
cmp eax, esi
jae 0x526791
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x2c]
and edx, edi
and ecx, dword [esp + 0x48]
or edx, ecx
je 0x526780
mov ecx, dword [eax]
test byte [ecx + 4], 1
je 0x526789
add eax, 0x30
cmp eax, esi
jb 0x526768
jmp 0x52678d
cmp eax, esi
jb 0x5267af
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
dec dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov al, byte [edi + 0x2a]
dec al
mov byte [edi + 0x2a], al
cmp al, 2
jae 0x526708
jmp 0x5267b3
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
movsx eax, word [edi + 0x48]
mov dword [esp + 0x38], 0
add dword [ecx + 0x88], eax
test byte [esp + 0x30], 4
je 0x52685b
mov eax, dword [edi + 0x330]
mov edx, dword [esp + 0x50]
and edx, 8
mov ecx, dword [eax + 0x24]
test ecx, 0x1000
jne 0x526807
mov dword [esp + 0x38], 0
test dx, dx
je 0x52685b
mov dword [esp + 0x38], 0
test ecx, 0x400
jne 0x52685b
mov esi, dword [esp + 0x24]
mov eax, ecx
and eax, 0x1000
mov dword [esp + 0x38], 0
neg eax
sbb al, al
add al, 2
mov byte [edi + 0x2d], al
mov eax, dword [esi + 0x18]
test byte [eax + 0x24], 0x20
jne 0x52685f
mov dword [esp + 0x38], 0
test cl, 0x40
je 0x52685f
mov eax, dword [edi + 0x330]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
xor ecx, ecx
test dx, dx
mov eax, 8
cmove eax, ecx
movzx eax, ax
mov dword [esp + 0x38], eax
jmp 0x52685f
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x526be4
mov eax, dword [esp + 0x4c]
add eax, 0x40
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], eax
nop word [eax + eax]
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, esi
mov dword [esp + 0x20], ecx
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x4c], esi
mov edx, dword [esi + 0x48]
test edx, edx
je 0x5268c6
mov eax, dword [esp + 0x2c]
xor edi, edi
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x5268c2
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x5268c2
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x5268b6
mov ecx, dword [esp + 0x20]
test byte [esi + 0x24], 2
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jne 0x526a46
cmp dword [esi + 0xc], 0
jne 0x526a46
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x52692b
mov eax, dword [esi + 0x40]
test eax, eax
je 0x52690b
mov edx, dword [esp + 0x2c]
nop dword [eax]
cmp dword [eax], edx
je 0x52690b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x526900
push 0xfffffffffffffff8
push eax
push 0
push 0
push dword [ecx + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, 0x9c
call fcn.004d6110
add esp, 0x14
jmp 0x526a46
cmp dword [esi + 0x38], 0
jne 0x526a46
test al, 0x40
jne 0x526a31
test byte [esp + 0x30], 0x20
jne 0x526a31
mov edx, dword [esp + 0x14]
mov ecx, 0x69
cmp byte [edx + 0x2d], 0
je 0x526966
mov eax, dword [esp + 0x20]
mov ecx, 0x6a
mov eax, dword [eax + 0x38]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push esi
mov edx, dword [eax + 0x38]
push edi
call fcn.00503460
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [eax + 0x2d], 0
jne 0x526a0e
cmp word [esi + 0x2a], 0x40
jge 0x526a0e
test byte [esi + 0x24], 0x20
jne 0x526a0e
mov eax, dword [esp + 0x20]
xor esi, esi
mov edx, dword [eax + 0x48]
mov ecx, dword [eax + 0x4c]
mov eax, edx
or eax, ecx
je 0x5269bd
nop dword [eax]
shrd edx, ecx, 1
inc esi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x5269b0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
cmp byte [ecx + 0x45], 0
je 0x5269d9
push esi
mov edx, 0xfffffff5
call fcn.004d67f0
add esp, 4
jmp 0x526a0e
mov eax, dword [eax + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x58]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
je 0x526a07
mov ecx, dword [esp + 0x28]
lea edx, [eax - 0x14]
push 0xfffffffffffffff5
push esi
call fcn.004d69b0
add esp, 8
jmp 0x526a0e
mov dword [eax - 4], esi
mov byte [eax - 0x13], 0xf5
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x88]
test eax, eax
jle 0x526a46
mov edx, dword [esp + 0x38]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x58]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x526a46
push dword [esi]
mov ecx, dword [esp + 0x20]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.004f4a30
add esp, 0xc
mov ecx, dword [esp + 0x48]
test dword [ecx + 0x24], 0x200
je 0x526b92
mov eax, dword [esp + 0x4c]
mov edx, 0x69
mov esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], esi
test byte [eax + 0x24], 0x20
je 0x526a8e
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
jne 0x526a8e
test cl, 0x20
je 0x526a8e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
jmp 0x526b92
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x2d], 0
je 0x526aca
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x526abc
nop word [eax + eax]
cmp eax, esi
je 0x526abc
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x526ab0
mov eax, dword [esp + 0x14]
mov edx, 0x6a
mov dword [eax + 0x18], ecx
jmp 0x526af1
mov eax, dword [esp + 0x54]
test eax, eax
je 0x526ae0
test cl, 0x20
je 0x526ae0
mov ecx, eax
mov edx, 0x68
jmp 0x526af3
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x28], eax
mov eax, ecx
mov esi, dword [esp + 0x18]
push edi
mov dword [esi - 0x38], eax
mov esi, dword [esp + 0x54]
push dword [esi + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004d5d80
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, esi
mov eax, dword [ecx + 8]
mov dword [esp + 0x4c], eax
call fcn.004fb160
mov esi, eax
test esi, esi
je 0x526b58
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
cmp byte [ecx + 0x45], 0
je 0x526b43
push esi
mov edx, 0xfffffffb
call fcn.004d67f0
add esp, 4
jmp 0x526b58
mov eax, dword [edx + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
mov byte [eax + ecx*4 - 0x13], 0xfb
mov dword [eax + ecx*4 - 4], esi
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x526b92
test eax, 0x8002
jne 0x526b92
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 1
jne 0x526b92
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x88]
test eax, eax
jle 0x526b92
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
test edi, edi
js 0x526bc6
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov eax, dword [ecx + 0x7c]
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x60]
test esi, eax
jne 0x526bc6
bts esi, edi
mov dword [edx + 0x60], esi
cmp edi, 1
jne 0x526bc6
mov ecx, edx
call fcn.004fa970
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
add eax, 0x50
sub dword [esp + 0x3c], 1
mov dword [esp + 0x18], eax
jne 0x526880
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x88]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x45], 0
jne 0x526636
or ecx, 0xffffffff
or edx, 0xffffffff
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x34], edi
jle 0x526cdc
mov esi, dword [esp + 0x14]
add esi, 0x31c
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x526c66
lea eax, [esi - 0x2c]
push eax
movzx eax, byte [esi]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [eax + eax*4]
add ecx, 8
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.005216a0
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp byte [eax + 0x45], 0
jne 0x526636
push dword [esp + 0x30]
movzx eax, byte [esi]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esi - 0x2c]
push edi
push eax
call fcn.0051bba0
mov eax, dword [esp + 0x38]
mov edx, edi
push dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 0x88]
mov dword [esi - 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.0051cd20
mov ecx, dword [esi - 0x14]
inc edi
mov dword [esp + 0x30], eax
add esp, 0x18
mov eax, dword [esp + 0x14]
add esi, 0x50
mov dword [esp + 0x3c], edx
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x18]
cmp edi, dword [esp + 0x34]
jl 0x526c23
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret