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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
mov ebp, dword [eax + 0x34]
mov dword [esp + 0x18], ebp
mov edx, dword [ebx]
mov dword [esp + 0x24], edx
push esi
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x28], edi
test ebp, ebp
je 0x546867
cmp dword [ebp], edx
je 0x546863
mov ebp, dword [ebp + 0x18]
test ebp, ebp
jne 0x546857
mov dword [esp + 0x20], ebp
movsx eax, word [eax + 0x22]
mov ecx, dword [ebx + 0x28]
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov dword [ebx + 0x28], eax
mov esi, dword [edi + 0x74]
mov dword [esp + 0x24], esi
cmp dword [edi + 0x78], esi
jg 0x5468ba
push 0
push dword [esp + 0x1c]
push ecx
push 0x74
push edi
call fcn.004e2c80
mov edx, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x24], eax
jmp 0x5468ed
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x70]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x74
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x44]
lea esi, [eax + 1]
add eax, dword [esp + 0x18]
mov dword [ebx + 0x2c], eax
cmp dword [ecx], 1
mov dword [esp + 0x10], esi
jle 0x546ac3
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x30], esi
test byte [eax + 0x1c], 0x80
jne 0x546986
mov eax, dword [esp + 0x50]
push esi
test eax, eax
je 0x546934
push esi
push eax
push edx
call fcn.004cbb60
add esp, 0x10
jmp 0x5469e6
push 0x34
push dword [ebx]
call fcn.00504c90
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x5469e8
push 0x34
push 0
push ebp
call sub.MSVCRT.dll_memset
or eax, 0xffffffff
mov byte [ebp], 0x4b
push ebp
mov word [ebp + 0x22], ax
call fcn.004ccaf0
mov eax, dword [ebx]
add esp, 0x10
mov eax, dword [eax + 0x84]
cmp dword [ebp + 0x18], eax
jle 0x5469e8
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ebx
call fcn.00506fd0
add esp, 0xc
jmp 0x5469e8
mov esi, dword [eax + 8]
mov dword [esp + 0x30], esi
test esi, esi
je 0x5469a5
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
je 0x5469a1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x546991
mov dword [esp + 0x30], esi
mov eax, dword [esi + 4]
movzx eax, word [eax]
movsx ecx, ax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x5469dc
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 8]
test eax, eax
je 0x5469d8
push 0
push 0
push eax
push edx
call fcn.004cbb60
add esp, 0x10
jmp 0x5469e6
xor ebp, ebp
jmp 0x5469e8
push ecx
push ebx
call fcn.004cc960
add esp, 8
mov ebp, eax
push ebp
push dword [ebx]
call fcn.0050b9e0
mov ecx, eax
xor edx, edx
mov eax, dword [esp + 0x50]
add esp, 8
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dx, word [eax + 0x22]
jge 0x546a80
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x54]
nop
mov eax, dword [esi + ebp*4]
test eax, eax
js 0x546a4f
mov edx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4 + 8]
test eax, eax
je 0x546a3a
push 0
push 0
push eax
push edi
call fcn.004cbb60
mov ecx, dword [esp + 0x24]
add esp, 0x10
jmp 0x546a3c
xor eax, eax
push eax
push ecx
push ebx
call fcn.0050b8d0
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x14], ecx
jmp 0x546a6b
push ebp
push ebx
call fcn.004cc960
push eax
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.0050b8d0
add esp, 0x14
mov dword [esp + 0x14], eax
mov ecx, eax
mov eax, dword [esp + 0x48]
inc ebp
movsx eax, word [eax + 0x22]
cmp ebp, eax
jl 0x546a10
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
push 0
push 0
push dword [esp + 0x60]
push eax
push ecx
push esi
mov esi, dword [esp + 0x34]
push esi
push ebx
call fcn.00546360
mov eax, dword [esp + 0x34]
add esp, 0x20
test eax, eax
je 0x546ab2
push eax
push dword [esp + 0x30]
call fcn.004cc370
add esp, 8
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x28], 0
jmp 0x546f04
push 0
push 4
push 0
push 0
push 0
push dword [esp + 0x6c]
inc eax
mov dword [esp + 0x44], eax
inc eax
push ecx
push ebx
mov dword [esp + 0x50], eax
mov dword [ebx + 0x2c], eax
call fcn.0053ca00
add esp, 0x20
mov dword [esp + 0x34], eax
test eax, eax
je 0x547182
mov eax, dword [esp + 0x48]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x546b9d
mov edx, dword [esp + 0x54]
mov ebp, 0xfffffffe
add esi, 2
mov dword [esp + 0x28], edx
sub ebp, dword [esp + 0x10]
jmp 0x546b20
mov eax, dword [edx]
test eax, eax
js 0x546bd1
cmp dword [ebx + 8], 0
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 0x38], eax
je 0x546b7a
push esi
push eax
push ebx
call fcn.005093a0
mov edx, eax
add esp, 0xc
cmp edx, esi
je 0x546b76
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x546b63
test dword [ecx + 4], 0x200000
mov al, 0x4f
jne 0x546b65
mov al, 0x50
push esi
push edx
movzx eax, al
push eax
push dword [ebx + 8]
call fcn.0052e180
add esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
inc esi
add edx, 4
mov dword [esp + 0x28], edx
movsx eax, word [eax + 0x22]
lea ecx, [esi + ebp]
cmp ecx, eax
jl 0x546b20
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
test byte [eax + 0x1c], 0x80
jne 0x546ca7
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546c49
push 0
push esi
push dword [esp + 0x1c]
push 0x86
push edi
call fcn.004e2c80
mov edx, dword [esp + 0x28]
add esp, 0x14
jmp 0x546c78
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546bf6
push esi
lea eax, [esi + ebp]
push eax
push dword [esp + 0x1c]
push 0xae
push edi
call fcn.004e2c80
mov edx, dword [esp + 0x3c]
add esp, 0x14
jmp 0x546c25
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xae
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea eax, [esi + ebp]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x546b7a
lea ecx, [eax + eax*4]
mov ebx, 1
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], bx
mov ebx, dword [esp + 0x40]
jmp 0x546b7a
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x50]
lea eax, [esi + 1]
push eax
test ecx, ecx
je 0x546c93
push ecx
push ebx
call fcn.00507cb0
add esp, 0xc
jmp 0x546d71
push edx
push 0x86
push edi
call fcn.0052e180
add esp, 0x10
jmp 0x546d71
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x546cc0
mov edi, edi
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x546cc0
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x546cb0
mov eax, dword [ecx + 4]
mov ecx, dword [edi + 0x74]
movzx eax, word [eax]
movsx esi, ax
cmp dword [edi + 0x78], ecx
jg 0x546cea
push dword [esp + 0x10]
push esi
push dword [esp + 0x1c]
push 0xae
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546d19
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xae
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
add esi, 2
mov ecx, dword [edi + 0x74]
add esi, eax
lea edx, [eax + 1]
cmp dword [edi + 0x78], ecx
jg 0x546d3e
push 0
push edx
push esi
push 0x50
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546d6d
mov ebp, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x50
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x32]
mov dword [esp + 0x28], eax
test eax, eax
je 0x546e10
mov edx, dword [edi]
cmp byte [edx + 0x57], 0
jne 0x546db8
mov eax, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
push dword [eax + ecx*4 + 0x10]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
push eax
push edx
call fcn.004cfa50
add esp, 0xc
mov word [esi], 0xb6
mov dword [esi + 0x10], 0
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546dd8
push 0
push 0
push dword [esp + 0x1c]
push 0x79
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546fd5
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x546fd5
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x546e19
mov eax, ebx
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546e3b
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push esi
push 0x60
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546e6a
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x78], ecx
jg 0x546e8f
push 0
push edx
push esi
push 0x7e
push edi
call fcn.004e2c80
mov edx, dword [esp + 0x44]
add esp, 0x14
jmp 0x546eba
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546ed5
push edx
push dword [esp + 0x30]
push esi
push 0x7f
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546f04
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x44]
cmp dword [eax], 1
jne 0x546f19
push dword [esp + 0x34]
call fcn.0053f5b0
add esp, 4
mov edx, dword [edi + 0x74]
mov dword [esp + 0x24], edx
cmp dword [edi + 0x78], edx
jg 0x546f3b
push 0
push 0
push esi
push 0x26
push edi
call fcn.004e2c80
add esp, 0x14
mov dword [esp + 0x24], eax
jmp 0x546f6a
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x546fd5
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
lea ebx, [ebx]
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x546f9b
lea eax, [esi + ebx]
push eax
push esi
push ebp
push 0x5d
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x546fc6
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], esi
lea ecx, [eax + ecx*4]
lea eax, [esi + ebx]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], eax
inc esi
cmp esi, dword [esp + 0x18]
jl 0x546f80
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
push dword [esp + 0x48]
push ebx
call fcn.0053afb0
mov edx, dword [edi + 0x74]
add esp, 8
cmp dword [edi + 0x78], edx
jg 0x547003
push dword [esp + 0x10]
push dword [esp + 0x1c]
push 0
push 0xa
push edi
call fcn.004e2c80
add esp, 0x14
mov edx, eax
jmp 0x547036
mov esi, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x547073
test edx, edx
jns 0x547046
mov edx, dword [edi + 0x74]
dec edx
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x547065
push 0xfffffffffffffff4
push ebp
push eax
push edi
call fcn.00547a80
add esp, 0x10
jmp 0x547073
test ebp, ebp
je 0x547073
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0xf4
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x5c]
cmp edx, 0xb
jne 0x547081
mov edx, 2
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x547093
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x54709c
mov eax, ebx
cmp dword [esp + 0x28], 0
mov byte [eax + 0x15], 1
jne 0x547176
mov ebx, dword [esp + 0x24]
mov ecx, dword [edi + 0x74]
mov ebp, dword [esp + 0x1c]
lea edx, [ebx + 1]
cmp dword [edi + 0x78], ecx
jg 0x5470cf
push 0
push edx
push ebp
push 5
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x5470fa
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x74]
test ebx, ebx
jns 0x547104
lea ebx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x547113
mov eax, 0x74c854
jmp 0x54711c
mov eax, dword [edi + 0x70]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x54713f
push 0
push 0
push ebp
push 0x79
push edi
call fcn.004e2c80
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
pop edi
pop esi
mov dword [eax + ecx*4 + 4], ebp
pop ebp
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop ebx
add esp, 0x2c
ret
push dword [esp + 0x34]
call fcn.0053f5b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret