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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0xfc]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test byte [eax + 0x50], 1
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
jne 0x497edf
lea eax, [esi + esi*8]
mov ecx, dword [edx + 0x20]
lea eax, [ecx + eax*8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x34]
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], esi
cmp dword [edx + 0x44], ebx
jne 0x497edf
cmp dword [esi + 0x44], ebx
jne 0x497edf
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test eax, eax
je 0x4975b9
cmp dword [edx + 0x3c], ebx
jne 0x497edf
cmp dword [eax + 0x10], ebx
jne 0x497edf
test dword [edx + 4], 0x100
je 0x4975ca
test eax, eax
jne 0x497edf
cmp dword [ecx], ebx
je 0x497edf
test byte [esi + 4], 1
jne 0x497edf
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4975f8
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
jg 0x497edf
test edi, edi
jne 0x497edf
cmp dword [edx + 0x30], ebx
je 0x497606
cmp dword [esi + 0x30], ebx
jne 0x497edf
test edi, edi
je 0x497613
cmp dword [esi + 0x30], ebx
jne 0x497edf
cmp dword [esi + 0x3c], ebx
je 0x49762b
cmp dword [edx + 0x24], ebx
jne 0x497edf
test byte [edx + 4], 1
jne 0x497edf
test dword [esi + 4], 0x2000
jne 0x497edf
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 0x2c]
test dl, 0x60
je 0x497680
cmp dword [ecx], 1
jg 0x497edf
mov eax, dword [ecx + 0x18]
cmp byte [eax + 0x2b], 1
je 0x497edf
mov eax, dword [esp + 0x24]
test byte [eax + 4], 1
jne 0x497edf
test dl, 0x10
jne 0x497edf
mov eax, dword [esp + 0x10]
mov edx, 1
mov dword [esp + 0x48], edx
jmp 0x497682
xor edx, edx
cmp dword [esp + 0x34], ebx
jle 0x497692
test byte [ecx + 0x2c], 0x40
jne 0x497edf
test dword [eax + 0x30], 0x100
je 0x4976a7
mov eax, dword [eax + 0x4c]
cmp byte [eax + 0x12], bl
je 0x497edf
cmp dword [esi + 0x34], ebx
je 0x497813
cmp dword [esi + 0x30], ebx
jne 0x497edf
test edi, edi
jne 0x497edf
mov edi, dword [esp + 0x24]
test byte [edi + 4], 1
jne 0x497edf
test edx, edx
jne 0x497edf
mov eax, esi
nop dword [eax]
test byte [eax + 4], 9
jne 0x497edf
mov edx, dword [eax + 0x34]
test edx, edx
je 0x4976fa
cmp byte [eax], 0x87
jne 0x497edf
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 1
jl 0x497edf
cmp dword [eax + 0x44], ebx
jne 0x497edf
cmp dword [esp + 0x34], ebx
jle 0x49771f
test byte [ecx + 0x2c], 0x40
jne 0x497edf
mov eax, edx
test eax, eax
jne 0x4976e0
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x497746
mov eax, dword [ecx]
test eax, eax
jle 0x497746
add ecx, 0x18
cmp word [ecx], bx
je 0x497edf
inc edx
add ecx, 0x14
cmp edx, eax
jl 0x497735
test dword [edi + 4], 0x2000
jne 0x497edf
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x30], ebx
cmp dword [eax], ebx
jle 0x4977a6
xor edi, edi
mov ecx, dword [eax + edi + 8]
call fcn.00457f20
mov esi, dword [esi + 0x34]
mov bl, al
test esi, esi
je 0x49778d
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + edi + 8]
call fcn.00457f20
cmp al, bl
jne 0x497edf
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x497772
mov esi, dword [esp + 0x40]
add edi, 0x14
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0x1c]
cmp ecx, dword [eax]
jl 0x497760
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp dword [eax], 1
jle 0x497813
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x68], 0x1f4
jg 0x497edf
mov ecx, dword [esp + 0x18]
test dword [ecx + 0x50], 0x800000
jne 0x497edf
mov eax, dword [eax + 0x28]
cdq
mov edi, eax
add edi, 1
adc edx, 0
shld edx, edi, 2
push edx
shl edi, 2
push edi
call fcn.00419010
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x49780f
push edi
push 0
push ebx
call fcn.004d4bd0
mov edi, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edi + 0x28]
mov dword [ebx], eax
jmp 0x497817
mov dword [esp + 0x20], ebx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
mov dword [edi + 0xfc], ecx
mov edx, dword [eax + 0x16c]
test edx, edx
je 0x49788d
cmp byte [eax + 0xb1], 0
jne 0x49788d
cmp byte [edi + 0xd4], 0
jne 0x49788d
push ecx
push 0
push 0
push 0
push 0x15
push dword [eax + 0x170]
call edx
add esp, 0x18
cmp eax, 1
jne 0x49786f
push str.not_authorized
push edi
call fcn.0041c910
mov dword [edi + 0xc], 0x17
jmp 0x49788a
test eax, eax
je 0x49788d
cmp eax, 2
je 0x49788d
push str.authorizer_malfunction
push edi
call fcn.0041c910
mov dword [edi + 0xc], 1
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [edi + 0xfc], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x4978b8
mov ecx, edi
call fcn.00418b80
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4978ca
mov ecx, edi
call fcn.00418b80
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4978d8
mov ecx, edi
call fcn.00418b80
mov edx, dword [esp + 0x10]
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x1c], 0
mov eax, dword [esi + 0x34]
mov dword [esp + 0x38], eax
test eax, eax
je 0x497a1f
jmp 0x497914
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edi, dword [edx + 0x18]
push 0
mov eax, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x30]
mov esi, dword [ecx + 0x3c]
mov dword [edx + 0x18], 0
mov edx, ecx
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x3c], 0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
call fcn.0045a3b0
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x2c], ecx
mov dword [edx + 0x30], ebx
mov ebx, dword [esp + 0x20]
mov dword [edx + 0x3c], esi
mov byte [edx], 0x87
mov dword [eax + 0x18], edi
test ecx, ecx
jne 0x49797f
mov eax, dword [esp + 0x28]
jmp 0x497a02
mov esi, dword [esp + 0xc]
inc dword [esi + 0x68]
mov eax, dword [esi + 0x68]
mov dword [ecx + 0x10], eax
test ebx, ebx
je 0x4979ef
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x4979ef
push dword [esp + 0x34]
mov edx, ebx
push dword [ecx + 0x20]
mov ecx, esi
call fcn.00497430
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
add esp, 8
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x58], 0x4974c0
mov dword [esp + 0x5c], fcn.0040b500
call fcn.00454d40
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x4979fd
mov dword [eax + 0x38], ecx
mov dword [ecx + 0x38], edx
mov eax, ecx
mov ecx, edx
mov edx, 0x34
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x497910
test ebx, ebx
je 0x497a2e
mov ecx, dword [esp + 0x18]
mov edx, ebx
call fcn.00418b80
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
je 0x497a5d
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + 0x1c], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x497adc
mov eax, dword [esi + 0x18]
cmp eax, 1
jne 0x497ad1
mov ecx, dword [esp + 0xc]
mov edi, ecx
push 0
push 0xc
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x497a8f
call fcn.00419010
jmp 0x497a94
call fcn.004188b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x497ab7
mov eax, dword [edi + 0x84]
mov dword [ecx], eax
mov dword [edi + 0x84], ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x46c810
jmp 0x497ad5
mov ecx, dword [edi]
cmp dword [ecx + 0x210], 0
jne 0x497ac8
add dword [esi + 0x18], 0xffffffff
jne 0x497ad5
mov edx, esi
call fcn.0046c580
jmp 0x497ad5
dec eax
mov dword [esi + 0x18], eax
mov dword [ebx + 0x18], 0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov ebx, edx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], esi
lea eax, [eax + eax*8]
mov dword [esp + 0x20], edx
shl eax, 3
mov dword [esp + 0x2c], eax
nop dword [eax]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x20]
mov byte [esp + 0x17], 0
mov al, byte [eax + ecx + 0x2c]
mov ecx, dword [edi]
and al, 0x40
mov byte [esp + 0x16], al
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], eax
cmp ebx, edx
jne 0x497b32
mov eax, dword [esp + 0x10]
mov al, byte [eax + 0x2c]
mov byte [esp + 0x17], al
mov edx, dword [esp + 0x1c]
cmp ecx, 1
jle 0x497b68
mov eax, dword [esp + 0x34]
inc eax
push eax
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00473c30
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
test edx, edx
je 0x497e78
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x20], edx
jmp 0x497b70
test ecx, ecx
jle 0x497c42
mov esi, dword [esp + 0x2c]
add edi, 8
add esi, 0x2c
mov dword [esp + 0x4c], edi
add esi, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], esi
nop dword [eax + eax]
test dword [esi + 4], 0x400
je 0x497bda
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x497bda
xor edi, edi
cmp dword [ebx], edi
jle 0x497bcb
lea esi, [ebx + 8]
nop dword [eax]
mov edx, dword [esi]
test edx, edx
je 0x497bbf
mov ecx, dword [esp + 0x18]
call fcn.00418b80
inc edi
add esi, 8
cmp edi, dword [ebx]
jl 0x497bb0
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, ebx
call fcn.00418c30
mov edi, dword [esp + 0x4c]
movups xmm0, xmmword [edi]
mov al, byte [esp + 0x16]
push 0x48
movups xmmword [esi - 0x24], xmm0
push 0
movups xmm0, xmmword [edi + 0x10]
push edi
movups xmmword [esi - 0x14], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi - 4], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0xc], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esi + 0x1c], xmm0
or byte [esi], al
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x50], eax
call fcn.004d4bd0
add esi, 0x48
add edi, 0x48
add esp, 0xc
mov dword [esp + 0x38], esi
sub dword [esp + 0x3c], 1
mov dword [esp + 0x4c], edi
jne 0x497b90
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + edx + 0x2c]
and al, 0x40
or al, byte [esp + 0x16]
or al, byte [esp + 0x17]
mov byte [ecx + edx + 0x2c], al
mov edx, dword [esi + 0x30]
test edx, edx
je 0x497c89
test dword [ebx + 4], 0x400000
jne 0x497c89
xor ecx, ecx
cmp dword [edx], ecx
jle 0x497c7f
lea eax, [edx + 0x18]
xor edi, edi
lea eax, [eax + 0x14]
mov word [eax - 0x14], di
inc ecx
cmp ecx, dword [edx]
jl 0x497c71
mov dword [ebx + 0x30], edx
mov dword [esi + 0x30], 0
cmp dword [esp + 0x48], 0
mov edi, dword [esi + 0x24]
mov dword [esi + 0x24], 0
jbe 0x497caa
mov edx, dword [esp + 0x44]
mov ecx, edi
push 1
call fcn.0048f400
add esp, 4
test edi, edi
je 0x497d72
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x497d6b
mov eax, dword [esp + 0xc]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00419010
mov esi, eax
add esp, 8
test esi, esi
je 0x497d48
push 0x34
push 0
push esi
call fcn.004d4bd0
or eax, 0xffffffff
mov byte [esi], 0x2c
mov word [esi + 0x22], ax
add esp, 0xc
mov dword [esi + 0x10], ebx
mov eax, dword [ebx + 4]
and eax, 0x400208
or dword [esi + 4], eax
mov ecx, dword [ebx + 0x18]
inc ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0xc], edi
mov eax, dword [edi + 4]
and eax, 0x400208
or dword [esi + 4], eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
jl 0x497d1c
lea ecx, [eax + 1]
mov dword [esi + 0x18], ecx
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x84]
cmp ecx, eax
jle 0x497d5e
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push edi
call fcn.0041c910
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ebx + 0x24], esi
mov esi, dword [esp + 0x28]
jmp 0x497d72
mov edx, edi
mov edi, dword [esp + 0xc]
mov ecx, dword [edi]
call fcn.00459770
mov ecx, dword [edi]
mov edx, ebx
call fcn.00459770
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x24], esi
mov esi, dword [esp + 0x28]
jmp 0x497d72
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x24], edi
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x497dd0
mov eax, dword [esp + 0xc]
mov ecx, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x497db9
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x497db0
mov eax, dword [ecx + 0x1c]
mov edx, ebx
push 0
lea ecx, [esp + 0x58]
mov dword [esp + 0x6c], eax
call fcn.00497220
add esp, 4
mov eax, dword [esi + 4]
and eax, 0x100
or dword [ebx + 4], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x497dec
mov dword [ebx + 0x3c], eax
mov dword [esi + 0x3c], 0
mov edi, dword [esp + 0x40]
test edi, edi
jle 0x497e5a
mov esi, dword [esp + 0x1c]
add esi, 0x40
add esi, dword [esp + 0x2c]
nop
cmp dword [esi - 0x28], 0
je 0x497e4e
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
lea eax, [esi - 0x38]
movlpd qword [esp + 0x60], xmm0
mov edx, ebx
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], 0x497370
mov dword [esp + 0x5c], fcn.0040b500
mov dword [esp + 0x6c], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00454d40
add esi, 0x48
sub edi, 1
jne 0x497e00
mov esi, dword [esp + 0x28]
mov ebx, dword [ebx + 0x34]
mov esi, dword [esi + 0x34]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
test ebx, ebx
jne 0x497b00
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x70]
mov ebx, dword [esp + 0x30]
xorps xmm0, xmm0
mov edx, ebx
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x462d70
mov dword [esp + 0x78], fcn.0040b500
call fcn.00454d40
test ebx, ebx
je 0x497ec5
mov ecx, dword [esp + 0x18]
mov edx, ebx
push 1
call fcn.0048ed20
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret